Hello everyone, this is a very simple question and im not sure if im just missing something, but i cant seem to get the sort via clicking a tables column heading done correctly, without adding a dynamic sort and a client action on a button group.
The column cell has a sort attribute, but again im not sure if im missing something. there is also a standard sort on the attribute within the aggregate.
Hello, i have since found that the issue was that the onsort function did not have an assign for the start index to be set to 0. I have also just found out that there is a way to create this automatically, by clicking on the table within the widget tree there is an automatic "create on sort" function that generates the client action for you, as well as the input parameter on the aggregate.
Hi @Morgan Kemp ,
Please check the below link for your reference, how to add sort to a table widget.
https://learn.outsystems.com/training/journeys/web-developer-662/how-to-add-sorting-to-a-table/o11/549
You have to use dynamic sort, otherwise sort functionality will not work. It's pretty simple please have a look.
Regards,
Manish Jawla
Thanks so much for getting back to me on this, it was exactly the sort of documentation i was looking for, however im now getting an error message when i want to click back to the original sorting of the table.
"The given key was not present in the dictionary"
Hello Morgan,
You can refer to the below OML. If still facing issues pls share your OML so that we can get what is the exact problem.
Thanks,
Neha
Hi Morgan,
Is that possible for you to share the oml? because I believe if you follow all the steps carefully, it should work as expected.