Re: Sorting Function without WOSort?
Re: Sorting Function without WOSort?
- Subject: Re: Sorting Function without WOSort?
- From: Sacha Mallais <email@hidden>
- Date: Wed, 6 Jul 2005 12:30:36 -0700
On Jul 6, 2005, at 12:13 PM, Janice Cheung wrote:
Hi Sacha! Thanks for writing me back!
Can you explain how to do this? I have already created the sort
order in the EOModel under Sort Ordering corresponding
to each individual Fetch Specification.
I don't know what you mean by this. You do not need a separate fetch
spec for each new sort ordering. That would suck!
In my code I have:
public WOComponent sortByDept(){
UserHome nextPage = (UserHome)pageWithName("UserHome");
fetchDeptServers();
return nextPage;
}
I'm not a display group expert, but I think this would work:
public WOComponent sortByDept(){
EOSortOrdering mySortOrdering = new EOSortOrdering("dept",
EOSortOrdering.KeyAscending);
myDisplayGroup.setSortOrderings(mySortOrdering);
return this;
}
You might need to tell the display group to re-sort by calling
redisplay(), but i think that's only for Java Client (where changing
the sort order does not reload the page).
sacha
_______________________________________________
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