113
Views
6
Comments
Dynamic sort in grouped fields on a react app
Question

Hello,

I need to group some attributes in the list screen aggregate of a react application and sort them on the table widget, but the problem is that the dynamic sort is not working even passing the grouped attribute name.

There's something I'm missing?


Sample steps:

  • Created the screen using the platform scaffolding;


  • Grouped the attributes on screen aggregate;


  • Changed the table header sort attribute to the grouped one.


I have not changed anything on the table sort handler, since it was created automatically by the platform.

GroupedAggregateSort.oml
2026-02-26 06-29-24
Rahul
 
MVP

Hi Weverton Silva,


Find this oml.

its working. Check URL- https://rahul-sahu.outsystemscloud.com/GroupedAggregateSort/Persons


Regards

Rahul Sahu

GroupedAggregateSort.oml
2021-08-13 13-48-25
Weverton Silva

Thanks for the response Rahul Sahu,


I cant see any differece on your oml and the one I sended (besides the RichWidgets reference that's not being used).

You changed something to get it work?


2026-02-26 06-29-24
Rahul
 
MVP

Hi Weverton Silva,

i didnt changed anything in this it may be cookies issues.


Regards

Rahul Sahu

2021-08-13 13-48-25
Weverton Silva

I found this issue when developing a screen to a client and the table there was not working to any end user (not just for me).

The sample oml I sended here is one that I created just for this topic and encontered the same problem on any new screen created using the steps I mentioned.


Just to be sure, I sended the original link of the oml to some friends to see if it is working for them and its not, so I don't think its a cookie issue.

Here is the link of the oml I attached running on my personal:

https://we-bueno.outsystemscloud.com/GroupedAggregateSort/Persons


2021-08-13 13-48-25
Weverton Silva

I happened to solve this by deleting the dynamic sort of the scaffolding aggregate and adding it again. Creating a new screen aggregate seems to solve it too. 

But I still think something is not right here.


To add more information:

The platform seems to not be adding the ORDER BY clausule on the aggregate  of the scaffolding


While the aggregate with the dynamic sort readded do

2023-02-09 09-40-22
Pedro Miguel Pimenta

Weverton Silva wrote:

I happened to solve this by deleting the dynamic sort of the scaffolding aggregate and adding it again. Creating a new screen aggregate seems to solve it too. 

But I still think something is not right here.


To add more information:

The platform seems to not be adding the ORDER BY clausule on the aggregate  of the scaffolding


While the aggregate with the dynamic sort readded do

I did the same and it worked. Removing and adding again the Dynamic Sort parameter.


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