Re: Display Group: sort in memory
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