• 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: Display Group: sort in memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Group: sort in memory


  • Subject: Re: Display Group: sort in memory
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 18 Nov 2008 10:24:45 -0500

I have a (batched) display group of EOs and I need to sort it using a key that only available in memory, not in the model. What is the best way to do that? Using setSortOrderings seems to require that all the keys are defined in the model.
It's basically impossible to sort a batching display group by an in- memory key, because you only have a page at a time, and you don't know if the page of objects you have would have sorted to be page 1 or page 100 without loading all of them into memory. Your only real option is to compute your value in the database either with a stored proc or a derived attribute, I suppose.

ms

_______________________________________________
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


  • Follow-Ups:
    • Re: Display Group: sort in memory
      • From: "John Huss" <email@hidden>
References: 
 >Display Group: sort in memory (From: "John Huss" <email@hidden>)

  • Prev by Date: Re: Scaling a PNG
  • Next by Date: Re: WOWODC app is down
  • Previous by thread: Display Group: sort in memory
  • Next by thread: Re: Display Group: sort in memory
  • Index(es):
    • Date
    • Thread