Introduction
Drop-down views downs can be added to grids or form fields on screens using a dedicated view. The below image shows a drop-down on a grid.
Drop-downs 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, see
Image Removed
View Setup
Create a view to use in the drop-down list. needs, including row colours, row heights and mouse-over colours, see How-to Add Styling to a Drop-Down View.
Image Added
Create a Drop-Down on a Grid
Create a view containing the data you wish to display in your drop-down list
Image Added
For Grid Row Style, select the Expand |
---|
|
This can be configured from your by clicking on the table header, or from a screen that currently displays a view of the data, by right-clicking and choosing Insert excerpt |
---|
| _show_table_configuration |
---|
| _show_table_configuration |
---|
nopanel | true |
---|
| .- In the
Insert excerpt |
---|
| _tables |
---|
| _tables |
---|
nopanel | true |
---|
| 's Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
| , expand the Views section - Click
Insert excerpt |
---|
| _addIcon |
---|
| _addIcon |
---|
nopanel | true |
---|
| to create a new view - Give the view an appropriate name and press
- In the View Attributes section, select the
Insert excerpt |
---|
| _attributes_icon |
---|
| _attributes_icon |
---|
nopanel | true |
---|
| 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
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
| , then press OK - On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
| 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.
Image Removed
- addIconaddIcon icon to create a new style:
Name: GridRowHeight
Height: 20px
either the table or drop-down view tab to keep it open- On a screen containing a finishfinishFor Grid Column Style, select the , click on the attribute header for the column where you want to display drop down fields
- The View Attribute addIconaddIcon 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
will open- On the finish
_finish | nopanel | true |
For Grid Alternate Row Style, select the Insert excerpt |
---|
_addIcon | _addIcon | nopanel | true |
icon to create a new style: Name: GridAltRowColour
Fill: #e8e8e8
Insert excerpt |
---|
_finish | _finish | property_tabs | | _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
|
For Row Selection Style, select , untick Read Only- On the addIconaddIcon icon to create a new style:
Name: RowSelectColour
Fill: #c27ba0
, drag across your drop-down view into the Selection View field, found in the Drop Down Settings section of the View Attribute properties
Image Added
- finishfinishFor Grid Row Hover Style, select the the properties
- Close and reopen the screen, then addIconaddIcon icon to create a new style:
Name: GridRowHoverColour
Fill: #daafc6
Insert excerpt |
---|
_finish | _finish | nopanel | true |
the screen to see the changes
Add View to Drop-DownCreate a view containing the data you wish to display in your drop-down list
Image Added
- finishfinish the new View
Image Removed
- either the table or drop-down view tab to keep it open
- On a screen , display your data using the default view in containing a gridgridClick fields, click on the attribute header - this should be the attribute that your new drop-down view will be displayed forOn the View Attributes drop-down field where you want to display the drop down
- If your field is not configured as a drop down, right-click it and choose
property
tabs
property
tabs_tables | nopanel | true |
's
, pin the tab to keep it openOpen the Insert excerpt |
---|
_tables | - Select the Drop Down (Manual) template from the Serene Grey palette
- The Drop Down
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
|
and expand the View section will open - Drag across your new view from the table properties drop-down view into the Selection View Name field (, found in the Drop Down Basic Settings section of the View Attribute properties)
Image Added
- the properties
- Close and reopen the screen, then the screen to see the changes