26
Views
6
Comments
List Sort Table
Application Type
Reactive

I have a problem when sorting only 1 page sorted.

 I want to sort all records, how do I do that?


 my oml :

testSorting.oml

Hello,

Its better to apply sorting inside aggregate itself to sort all data and then select number of records as per max record variable but in this case with every click on sorting you need to refresh your aggregate again.

But now you have different sorting into aggregate (Maso descending) which applied first then return 10 rows after that you trying to apply ascending sorting using list sort which will sort only returned set of rows that's why you getting different result than what you are expecting.

Hi Vi Viet Hoa 

You used list sorting and the aggregate returns 10 values only. So that sorting occurs on 10 elements. 

I modified your OML and make sorting functionality by refreshing aggregates whenever you click on Sort

Please take a look on attached OML


I hope it will help you

Regards

Murali

testSorting.oml

Thank you so much !

Hi,

The reason for not sorting is applied to second page is because of max records, So only 1st 10 records are getting sorted.

So use the sorting in aggregate itslef, or use local list .

Corrected your oml, please check.

sampleDemo - Demo link



testSorting.oml

This is helpful, thanks !

Hi Vi,

Please see the attached file it it will help you 


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