Introduction
Drop-down views can be styled to suit your business requirements. In the below example, row styling has been configured on the view that can be seen in the drop-down.
View Setup
Create a view to use in the drop-down list. This can be configured from your ERD by clicking on the table header, or from a screen that currently displays a view of the data, by right-clicking and choosing Show the Table Configuration.
- In the Table's Properties tab, expand the Views section
- Click to create a new view
- Give the view an appropriate name and press Apply
- In the View Attributes section, select the icon to open the Available Attributes selector
- Drag across the attributes you wish to see in the drop-down view into the View Attributes section on the Properties tab, then press OK
- On the Styles tab for the new View, choose or create new styles as required
View Style Settings
In this example, we will create a number of new styles to achieve the below styling for our drop-down view.
For Grid Row Style, select the icon to create a new style:
Name:
GridRowHeight
Height:
20px
- Apply and Close
For Grid Column Style, select the icon to create a new style:
Name:
GridColumnBorderRight
Border: choose the Split border option
For R:
Enter
1px
For the colour picker, enter the hex code
#bdbdbd
For the line, choose
solid
- Apply and Close
For Grid Alternate Row Style, select the icon to create a new style:
Name:
GridAltRowColour
Fill:
#e8e8e8
- Apply and Close
For Row Selection Style, select the icon to create a new style:
Name:
RowSelectColour
Fill:
#c27ba0
- Apply and Close
For Grid Row Hover Style, select the icon to create a new style:
Name:
GridRowHoverColour
Fill:
#daafc6
- Apply and Close
- Apply and Close the new View
Add View to Drop-Down
- On a screen, display your data using the default view in a Grid
- Click on the attribute header - this should be the attribute that your new drop-down view will be displayed for
- On the View Attributes Properties tab, pin the tab to keep it open
- Open the Table's Properties tab and expand the View section
- Drag across your new view from the table properties into the Selection View field (found in the Drop Down Settings section of the View Attribute properties)
- Apply the properties
- Close and reopen the screen, then Lock the screen to see the changes