Re: WODisplayGroup multiple sorting
Re: WODisplayGroup multiple sorting
- Subject: Re: WODisplayGroup multiple sorting
- From: Art Isbell <email@hidden>
- Date: Tue, 7 Mar 2006 16:41:16 -1000
On Mar 7, 2006, at 3:38 PM, Jim Wong wrote: i know that inside the .woo file there's the below:
sortOrdering = ( { class = EOSortOrdering; key = oppActStageID; selectorName = "compareAscending:"; } );
segment. but how to change the code to make it perform multiple sorts which factors in all the sort?
Because you are still in the WO learning mode, it's probably better in the long run for you to deduce the answer rather than being fed it directly :-) So here goes...
Everything stored in an eomodel, woo, or other WO and EOF files is data used by public API. In the case of a woo file, the key in the data structure that governs sorting is "sortOrdering". It would probably more appropriately be named "sortOrderings" to map to the WODisplayGroup method that uses this data. So your first clue is the answer to the question, "What type of data does this WODisplayGroup method return?"
After studying that reference, you should be able to figure out how to modify the "sortOrdering" data structure in the woo file to sort by multiple attributes.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden