0
Sorting for a View Element
I have a relation field with multiple records in it and I display it via a view element. Now I want to have some dynamic sorting by name, or by a number, but with the sorting I dont have some luck. Here is the code without the sorting and prepared for it.
let ActiveRecords := (select 'Line-up' where Zeitaufzeichnung.'Aufzeichnungen Meldung' like "recordings");
let ActiveRecordsbyName := ActiveRecords.Name;
let ActiveRecordsbyAmount := ActiveRecords.'Erarbeiteter Wert';
let AZ := ActiveRecords;
let ZA := ActiveRecords;
let Amount_UP := ActiveRecords;
let Amount_DOWN := ActiveRecords;
let WorkingInIt := ActiveRecords;
switch 'Sortierung Produktion' do
case 1:
AZ
case 2:
ZA
case 3:
Amount_UP
case 4:
Amount_DOWN
default:
WorkingInIt
end
5 replies
-
Hi
I am fairly certain that the sort order is defined in the view (where you say which columns to show and you are able to sort one of them ascending or descending, not in the script that creates it.
Regards John
-
If it were me, I'd go with creating 4 views. You have done so much prep work anyway.
-
Of course, good luck!
Content aside
- 1 hr agoLast active
- 5Replies
- 13Views
-
2
Following
