Hello folks
I am actually facing an issue in sorting my table records in descending format.
I have created the onSort client action and I am able to sort data in ascending format but again when I am clicking on the sort in header of the table I am not able to sort the records in descending order.
I have referred the following tutorial for the same but for me the descending part is not working.
https://www.outsystems.com/training/lesson/2047/how-to-add-sorting-to-a-table
Hi @Athulya Prasad ,In the tutorial, in 2:22 while assigning Tablesort value, "DESC" has been added.Please refer the attached OML for better understanding.
Hope it helps!RegardsN_G
Hi I have implemented the same logic but still it is not working. Only ascending is happening but no descending sorting is working
I again deleted the action and re-created it. Now it is working.
Thank you
Hi Athulya,
You probably have made something different on the OnSort handler. Please re-check carefully the instructions from the 1:55 on the video, the ifs and the assign.
Additionally, you can also debug, to see if the TableSort variable is getting updated with the " DESC" suffix or not (which would make it descendent).
Cheers,João
Hi
I have rechecked the video with my onSort all the assignments are correctly done.
I re-created the action again now. It is working now
Glad to be of help!