table-sort
Reactive icon

Table Sort

Stable version 1.0.2 (Compatible with OutSystems 11)
Uploaded
 on 13 June 2022
 by 
5.0
 (1 rating)
table-sort

Table Sort

Details
It helps to sort a column of a table record on the client side, when using a data action instead of the aggregate, in some cases, a local variable is used instead of the list in the table record, and when doing a sort through the columns, we were not able to use the tablesort variable that was used in the aggregate, in some cases we can solve it with a listsort, but this can generate a lot of rework, because we have to make some conditions with “if” and according to each column we click, it returns a string, containing the name of the sort attribute, to define which table field will be passed in the by field, and this can be a bad point if you have several columns in the table record, and with this component, you just need to define a name for your table record, and pass its id inside the component, which it does the sorting for each column on the client side.
Read more

Options

  • WidgetId: Table id to sort an column.


Step 1: To this work, you need do a name to table, follow the screenshot example below.

Step 2: In action OnSort, you need call the action TableSort in WidgetId, you need pass the id the table to sort, follow the screenshot example below.


Release notes (1.0.2)

- Update description.

Reviews (1)
by 
13 Feb
in version 1.0.2
Excelente, me ajudou muito.
Team
Other assets in this category