91
Views
5
Comments
Solved
Issue in sorting table in descending order
Application Type
Reactive
Service Studio Version
11.54.6 (Build 62311)

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

2021-10-01 12-43-46
N_SG
Solution

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!

Regards
N_G


Sorting.oml
UserImage.jpg
Athulya Prasad

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

2018-10-29 08-31-03
João Marques
 
MVP

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

UserImage.jpg
Athulya Prasad

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


2021-10-01 12-43-46
N_SG
Solution

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!

Regards
N_G


Sorting.oml
UserImage.jpg
Athulya Prasad

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

2021-10-01 12-43-46
N_SG

Glad to be of help!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.