By default, when including elements (attributes, variables, sdt, textblocks) that are not inside Grid Columns each element is generated in a different row. Using this property, different layouts can be obtained by telling K2BTools that some elements must be shown in the same row. When in the same row the relationship with the previous field can be configured, deciding whether to place the new element close to the previous one (same cell) or in a new different cell.
- New Row: The element is placed in a new row.
- New Cell: The element is placed in the same row of the previous element, in a new cell.
- Same Cell: The element is placed in the same cell of the previous element.
Make this changes to the property "Element Relative Position" of the following attributes:
- CustomerLastName: New Cell
- CustomerBirthDay: New Cell
- CountryName: New Cell
- CustomerPrefix: Same Cell
These properties can be used to help the user understand which information to enter in a certain attribute. Use it following these steps:
- Enter the K2BTrnForm instance for the “Customer” transaction.
- Go to the “CustomerFirstName” attribute and set its “Invite Message” property to “First Name” and empty the description.
- Go to the “CustomerLastName” attribute and set its “Invite Message” property to “Last Name” and empty the description.
- Go to the “CustomerNumber” attribute and set the “Contextual Help Value” to “Enter Id. Number” (quotes must be included in this case).
- Save the pattern instance, and execute the application.
- See in the generated interface the effect on the attributes, and the differences between the properties.
Make this changes to the following descriptions:
- Empty "CustomerPhoto" description.
- Set "CityId" description to "City".
- Set "CountryName" description" to "Country".
Add a control info to "CityId" attribute with the following properties:
- ControlType: DynamicComboBox
- ItemValues: CityId
- ItemDescriptions: CountryName
It’s time to see the result of all this! Execute your application and see the results in runtime.
|