• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting Function without WOSort?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WO Builder Icons vs. Menues (From: Markus Ruggiero <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Christopher Pavicich <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Florijan Stamenkovic <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Markus Ruggiero <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Christopher Pavicich <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Nathan Walker <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Florijan Stamenkovic <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Alan Ward <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: Chuck Hill <email@hidden>)
 >Re: WO Builder Icons vs. Menues (From: David Holt <email@hidden>)
 >Sorting Function without WOSort? (From: Janice Cheung <email@hidden>)
 >Re: Sorting Function without WOSort? (From: Sacha Mallais <email@hidden>)
 >Re: Sorting Function without WOSort? (From: Janice Cheung <email@hidden>)

  • Prev by Date: Re: Sorting Function without WOSort?
  • Next by Date: Re: Spring Frameworks
  • Previous by thread: Re: Sorting Function without WOSort?
  • Next by thread: Re: WO Builder Icons vs. Menues
  • Index(es):
    • Date
    • Thread