Re: Fetch Specs and Limits
Re: Fetch Specs and Limits
- Subject: Re: Fetch Specs and Limits
- From: Deirdre Saoirse Moen <email@hidden>
- Date: Wed, 11 May 2005 16:07:46 -0700 (PDT)
On Thu, 12 May 2005, Greg wrote:
> I was looking at EOFetchSpecification on how to fetch only a certain
> number of results. It has the setFetchLimit method, but it doesn't
> have a setStartAtIndex or something similar. What I am wanting to do
> is just to fetch the results of the search for say the first 20
> records. If there is 200 records then there will be 10 pages of
> results, when the user clicks to see the second page of results, I
> would want to make a fetch spec to return the results starting at
> index 21 and limit it to 20 results. I cannot see how I can do this.
> Do I need to write the SQL to do it?
No. This is what Display Groups are for.
http://wocode.com/WOCode/Files/CSDisplayGroupNavigator.tgz
http://www.stepwise.com/Articles/Technical/FetchLimits2.html
--
_Deirdre web: http://deirdre.net blog: http://deirdre.org/blog/
yarn: http://fuzzyorange.com cat's blog: http://fuzzyorange.com/vsd/
"Memes are a hoax! Pass it on!"
_______________________________________________
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