Buy Now
Sign in

Read data Function: sorting settings problem

Mmax2 , January 21 at 21:16
Answered
M
Mmax2
Good evening.
In Read data Function, I set both Sortable Fields and Order Fields to the same field.
In the table view, the rows order as set in the Order Fields, no problem.
But if you put a sortable link for that column, it doesn't work. The only way for the link to work is to remove the field from Order Fields.
Maybe a bug?
Thank you
Massimo
admin
Hi Massimo,

If you add the field in the order fields then the list will always has the order added first, sorting it with the same field will not change anything!

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
M
Mmax2
Thank you very much for your reply, but why is this way?
- I want the list to be first displayed in a certain order, so I populate Order Fields.
- I also want the possibility to reverse the order, so I populate Sortable Fields for the Sortable Link to work.
How can I achieve this behavior?
Thank you again.
Massimo
admin

Hi Massimo,

The only way to achieve this behavior is by clearing the order field, then passing the value of sort field when the connection loads, so in the connection url you should include: orderfld=field_name

But the sorting of this field will remain active unless the clear sort icon is clicked.

Best regards

Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
M
Mmax2

This is exactly what I was looking for!

Thank you very much!

Massimo