Using WOSortOrderManyKey with WOBatchNavigationBar does not work
Using WOSortOrderManyKey with WOBatchNavigationBar does not work
- Subject: Using WOSortOrderManyKey with WOBatchNavigationBar does not work
- From: Wolfram Stebel <email@hidden>
- Date: Fri, 23 Jul 2004 21:06:09 +0200
Hi all,
I try to use WOSortOrderManyKey with WOBatchNavigationBar.
After several hours finding the correct bindigs throug the components i
am now so far,
that the navigation bar works.
The WOSortOrder... still does not work properly.
I supply the following:
public WODisplayGroup eventBatch;
public EventsPage ( WOContext context )
{
super(context);
...
NSMutableArray sortOrderings = new NSMutableArray ();
sortOrderings.addObject ( new EOSortOrdering ( "date_from",
EOSortOrdering.CompareAscending ) );
sortOrderings.addObject ( new EOSortOrdering ( "date_to",
EOSortOrdering.CompareAscending ) );
sortOrderings.addObject ( new EOSortOrdering ( "event_title",
EOSortOrdering.CompareAscending ) );
eventBatch.setSortOrderings ( sortOrderings );
}
The eventBatch uses Objects of Type Event, Entries per Batch = 10,
Fetches on load, sorting on "date_from" ascending,
with a fetch spec to get the correct data.
As the binding for "sortKeyList" in WOBatchNav.... i take
"eventBatch.sortOrderings".
So far OK, fetched data is shown.
When changing the "Sort by" in the WOPopUpButton nothing happens (other
GUI-Elements force a reload themselve and work propperly!),
so i added a submit-button "Update".
This forces a reload of the page but the sort criteria is not changed.
The Popupbutton returns also with the default (old)
sort order.
What is wrong?
Another question: The Popupbutton should not show "english" field names
(bindings) from the database, instead i would like
customizable user readable words. Any hints how to disconnect displayed
values from internal specifications?
Thanks for your help in advance!
Wolfram Stebel
Flutgrabenstr. 19, 35576 Wetzlar, Germany
Tel. 06441/48164, Mobil: 0172/6558588
Mailto: email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.