Sort Table
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action in Avo Assure, available under the @Grid element. It allows the user to sort values in a grid, improving data visibility in the table or Grid, and saves the result in a dynamic variable
Input Value: <Column Header>;<Sort Order>
<Column Header> (Required)
Column name from the table on which sorting is to be applied. This is case-sensitive.
<Sort Order> (Required)
Specify the sorting order: ascending or descending
Output Value:
<Dynamic Variable>(Optional)<Dynamic Variable>(Optional)
This variable holds the results in True and False
Note:
If we try to apply sort in a column which is not visible on the screen it will fail, and mention Column does not present as error on Avo Assure client.
If we apply sort on a column which are not sortable it will fail, and mention column is not sortable as error on Avo Assure client.
Sort Table action is applicable to all grids across all products. Even if the grid has the first row as a filter, it will still work.
Example:
Performs sorting on a specified table column in the defined order
The Sort Table action takes the value from the Input Value column (e.g., Instrument;ascending) and sorts the specified column in the given order. The result of the sorting operation is stored in the {Sort} variable, while the execution status is stored in the {Status} variable, with the following possible values:
Ture – if the column is sorted successfully.
False – if sorting fails or an error occurs.