5
Views
5
Comments
Solved
Sorted column not removing after page refreshed
Question
Hi,

I have applied sorting to a list. When I sort column values and then I refreshed page column still highlighted.Actually sorting removed from table.

I have attached two screen shots which shows after page refreshed column still highlighted.
Sort.7z
2021-04-13 13-16-00
Jorge Costa
Staff
Solution
Hi, 

If the problem is that after refreshing, the table is still sorted by the previous column you selected, that is because the List_SortColumn widget uses Session Variables. So, when you refresh, the sort is kept and you still see the same column highlighted. If you have other columns with the Sort Widget, then you just have to select them to sort the table by the content of those columns.

If the problem is related to the sorting not working properly, the following links may help you:
Help: https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Using_Data%2Faggregates%2FSorting_Results.htm
Forum Post: https://www.outsystems.com/forums/discussion/6120/richwidgets-list-sortcolumn-instructions/
Video: https://www.outsystems.com/academy/11/1690/598/sort-columns-in-a-list/
 
Best regards,
Jorge Costa

2021-04-13 13-16-00
Jorge Costa
Staff
Hi,

Can you please send the module you are working on, so that we can have a better look to what is causing the problem? You can attach it in a reply to this message.

Best regards,
Jorge Costa
UserImage.jpg
pradip chavhan
Hi
Sorry but i cant sent module file.I have used follwing function for sorting
List_SortColumn_GetOrderBy()
Initially I have provide Account name column for sorting.
2016-04-21 20-09-55
J.
 
MVP
Not sure what went wrong in the first place.

when you scaffold an entity, you get automatic sorting in the first place.
so check differences with your own code and the the scaffolded page/sorting.

2021-04-13 13-16-00
Jorge Costa
Staff
Solution
Hi, 

If the problem is that after refreshing, the table is still sorted by the previous column you selected, that is because the List_SortColumn widget uses Session Variables. So, when you refresh, the sort is kept and you still see the same column highlighted. If you have other columns with the Sort Widget, then you just have to select them to sort the table by the content of those columns.

If the problem is related to the sorting not working properly, the following links may help you:
Help: https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Using_Data%2Faggregates%2FSorting_Results.htm
Forum Post: https://www.outsystems.com/forums/discussion/6120/richwidgets-list-sortcolumn-instructions/
Video: https://www.outsystems.com/academy/11/1690/598/sort-columns-in-a-list/
 
Best regards,
Jorge Costa

UserImage.jpg
pradip chavhan
Hi,

Thanks to all for your valuable reply.


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