Forums

Sorting in CC v6

dsimonse 11 Oct, 2022
Hi,

I believe I followed the guide to be able to sort the list in CCv6 bu "id" ... BUT ...
I get the sorting arrows and when I click something is happening (I get the timeglass) but no sorting is done.

Regards
Dennis
Colnem 14 Oct, 2022
If you want to sort in frontend with arrows, you haven't to sort in the read data action.
dsimonse 14 Oct, 2022
Hi Colnem,
Not sure I understand what you mean...
I have this in the "read data" section/Sortable fields:
ungdom.id
ungdom.subject
The "subject" works fine but the "id" not.
If I change "Ascending/Descending" it takes effect but no change of action when clicking on the sorting-button.
In the "View" section/"Column List" I have:
ungdom.id:{view:id_sorter}
ungdom.subject:{view:subject_sorter}
after I created the "SortingLink"s

//Dennis
dsimonse 16 Oct, 2022
Hi Max,

In a previous post "Read data Function: sorting settings problem" you mention a solution to Massimos problem:

**************
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
***************
Where and how do I I put "orderfld=field_name" ???

Regards
Dennis
dsimonse 17 Oct, 2022
Answer
Hi,
Got a solution ..! The FAQ "Build a basic listing" section 2 describes a static sorting of the ID-field. If I just did the same as described for the "Title"-field for my fields "ID" and Subject. it worked.

//Dennis
You need to login to be able to post a reply.