Hi
I have the data displayed using the gallery, now I would like to add the column sorting
I started by alphabetically sorting through the description of the idea and the date it was created in ascending and descending order.
The way it works is I put a button that I click and it sorts in descending order, I click a second time and it sorts in ascending order.
Below you can see the code I'm using, currently it only sorts the date and the description of the idea doesn't want to sort, I don't know why, of course I'd like to add more such sorts
this code I have in Item on gallery
SortByColumns(
Sort(
ThisItem.Data;
'Idea description';
If(varSortDescending1; SortOrder.Descending; SortOrder.Ascending)
);
"Created";
If(varSortCreated1; SortOrder.Descending; SortOrder.Ascending)
)
This code is from button on select for idea description sorting
If(varSortDescending1; Set(varSortDescending1;false); Set(varSortDescending1; true))
This code is from button on select for Created sorting
If(varSortCreated1; Set(varSortCreated1 ;false); Set(varSortCreated1 ; true))
I have created variables on OnStart in applications
Set(varSortDescending1;true) And Set(varSortCreated1;true)