I haven't actually tried using the component, but from the
documentation it appears to me that the key list should be a simple
set of strings that become choices in a popup button.
fOrderKeyList = new NSArray(new Object[] {"nomWeb", "prixVente"});
Then connect the WOSortOrderManyKey up to your display group.
You are creating an array of EOSortOrderings. If you're going to
create the sort orderings in your code then you could just set them
directly on display group with displayGroup.setSortOrderings(). The
WOSortOrderManyKey is a component used to let the user choose an
attribute and direction for sorting.
It looks like you are actually wanting to sort on multiple
attributes. If this is the case, I don't think that
WOSortOrderManyKey is what you want.
On Mar 28, 2007, at 5:55 AM, WIESEN Bruno wrote:
Hello,
I use a WOSortOrderManyKey to sort my WODisplayGroup but i can"t
get it work correctly...
Here is how I do this :
First, in WOBuilder, I added a WOSortOrderManyKey in a WOForm with
binding multipleSubmit= true
Then, I bind my displayGroup and my keyList
Here is my KeyList :
NSMutableArray sortOrderings = new NSMutableArray ();
sortOrderings.addObject ( new EOSortOrdering ("nomWeb",
EOSortOrdering.CompareAscending));
sortOrderings.addObject ( new EOSortOrdering ("prixVente",
EOSortOrdering.CompareAscending));
fSession.fProduitsGroup.setSortOrderings (sortOrderings);
fOrderKeyList= new NSMutableArray
(fSession.fProduitsGroup.sortOrderings());
The problem is the following :
The first time it works then...nothing happens...
An idea??
Thank you!
Bruno
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/robertwalker1%
40mac.com
This email sent to [EMAIL PROTECTED]
--
Robert Walker
[EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]