Setting the sort type for columns in the Edit Grid component
When working with the Edit Grid component, the modeler can choose the sort type to apply to the component’s columns.
You can sort values as numeric (Sort as number
) or as text for components that are part of the Edit Grid.
-
Sign in to the regulations administrator portal.
-
Open the UI forms section.
-
Create a form or select one from the list.
-
Open the Builder tab.
-
In the components panel on the left, select Updated.
-
Find the Edit Grid component and drag it onto the modeling canvas.
-
In the new window, click
Save
. -
Add components to the Edit Grid according to the business logic—for example, Text Field та Number.
As a result, the modeling canvas looks like this:
-
Open the settings for each component (Text Field and Number) and select the
Sort As Number
checkbox in the Display tab.The Sort As Number
function determines whether the component’s value should be treated as numeric when sorting in grids. -
Click
Save
. -
Open the Preview tab to see how sorting works.
-
Click
Add
to fill out the table. -
In the new window, fill out the fields and click
Save
. -
Add more records to the table if necessary.
As a result, if you sort the Text Field component in descending order, numeric values are displayed at the top, and text values at the bottom.
If you sort the Number component, the numeric values are sorted in ascending or descending order.