Hi
We are using multilevel hierarchy with custom data source api , on the fields response the sort attribute is TRUE (we belive that has to be true to respect the order that we are sending) . The members reponse the sorted attribute is false because If true
, the members' order from the response will be used as AZ order on the UI but flexmoster is still sorting. .
We also tried to use the defaulthierarchysortname as unsorted but no effect.
How can I maintain the order that i'm sending?
Thanks
Eduardo
Hello, Eduardo!
Thank you for reaching out to us.
If we understand correctly, you want to keep members in the order that came from the server. For that, specify sorted: true
in your /members response, and remove all other sorting configurations from the report. The same sorted
property in the /fields response will display the fields in the Field List in the order sent from the server.
We have prepared a simplified custom data source API implementation where you can test how the sorted
property works for both fields and members order: https://jsfiddle.net/flexmonster/h7ojvc6d/.
Hope you will find our answer helpful.
Kind regards,
Solomiia
Hi Solomiia,
As you can see in the E2.png and E3.png we are with sorted = true, the order is correct and no sorting in the report but in the E1.png you can see that is not showing right. Am I missing something?
Thanks for the support
Eduardo
Hello, Eduardo!
Thank you for your swift response.
Our team cannot reproduce the described sorting behavior on our side. Please modify the following JSFiddle to make your case reproducible: https://jsfiddle.net/flexmonster/w15pcb73/.
Looking forward to hearing from you.
Kind regards,
Solomiia