Forums

Read data Function: sorting settings problem

Mmax2 21 Jan, 2018
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
Max_admin 22 Jan, 2018
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Mmax2 22 Jan, 2018
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
Max_admin 30 Jan, 2018
Answer
1 Likes
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Mmax2 30 Jan, 2018
1 Likes
This is exactly what I was looking for!
Thank you very much!
Massimo
This topic is locked and no more replies can be posted.