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.
Image Added
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 Adding Styling to a Drop-Down View.
Create a Drop-Down on a Grid
Create a view containing the data you wish to display in your drop-down list
Image Added
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
- We recommend the view name is prefixed with
DD_ to indicate it's for a drop-down
- 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 - (Optional) On
|
the - 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
- For Grid Row Style, select the
- 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
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
|
For Grid Alternate Row Style, select , untick Read Only - On the addIconaddIcon icon to create a new style:
Name: GridAltRowColour
Fill: #e8e8e8
, 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 Row Selection Style, select the the properties
- Close and reopen the screen, then addIconaddIcon icon to create a new style:
Name: RowSelectColour
Fill: #c27ba0
the screen to see the changes
Tip |
---|
A maximum number of 1000 rows are visible on drop-down components by default. To change this, go to |
finishfinishadministration | nopanel | true |
---|
|
|
For Grid Row Hover Style, select the addIconaddIcon icon to create a new style:Name: GridRowHoverColour
Fill: #daafc6
finish_finish | nopanel | true |
---|
Insert excerpt |
---|
_finish | _finishsystem_config | | _system_config |
---|
nopanel | true |
---|
|
|
the new ViewImage Removed
Add View to > System Tuning section > Default Page Size. |
- On a screen, display your data using the default view in a
Create a view containing the data you wish to display in your drop-down list
Image Added
- gridgridClick on the attribute header - this should be the attribute that your new either the table or drop-down view will be displayed forOn the View Attributes tab to keep it open
- On a screen containing a property_tabsproperty_tabs fields, pin the tab to keep it openOpen the click on the 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
tables
tablestemplate_change | nopanel | true |
---|
|
's - 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 - In the Basic Settings section of the View Attribute properties, make the following changes:
- Drag across your
new view from the table properties - drop-down view into the
Selection - View
field (found in - Name field
Image Added
- In the Drop Down
Settings section of the View Attribute properties)- Value Field, enter the name of the attribute from your drop down view that you want to display in the field
Image Added
- the properties
- Close and reopen the screen, then the screen to see the changes
Multiple form fields can be dynamically updated depending on the option a user selects in a drop-down field. In the example below, a user selects a customer from the Customer Number drop down field and the fields, Customer First Name, Customer Last Name and Customer Email Address, are dynamically updated.
Image Added
- Follow the above steps to create a drop-down on a form
- In the Drop-Down component properties, in the Mappings section, mappings to link the data and fields
- Assign each Form Field (field name on the screen) to a Drop Down Field (attribute name)
- (Optional) For each field being updated dynamically, enabled Read Only in the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
|