12-02-2014 10:16 AM
Using API, how can you use the MEGA Operator “Order” to reorder Items in a collection automatically?
It would be enough to turn of alphabetic ordering and instead order chronologically:
Calling add(“B”), add(“A”), add(“C”) in order results in the Items ordered A,B,C. We are trying to preserve the order (B,A,C), or manually set it.
How can we do this?
Solved! Go to Solution.
26-02-2014 01:44 PM
This is still not what we wanted to do, but we have found out ourselves:
You have to get the Relationship of each MegaObject in the collection and set its “Order”-Property. The sorting will then be in ascending order of the integers put into “Order”.
18-02-2014 10:35 AM
Did you use the criteria "order" (manual) or "creation date" (automatic) ?
I think it's working in your case :
17-02-2014 08:46 AM
This is not what we want to achieve. We want to modify the Order (of Book Part Elements) so that the generated Book does not present the Parts in alphabetical order but in the order we specify.
14-02-2014 08:10 AM
GetCollection("<name collection>", "<sorting criteria>")
eg. GetCollection("Functional Process", "Name")
regards
stijn