|
As a note, using iterators with pagination
is pretty simple. If you load the iterator up into a session var then you can
call something like getQuery(1,10) or getQuery(11,10) to return the first or
second sets of 10 items in the query. The nice thing is that you can do this
with Records too. IE: getArray(11,10) will return the second page of 10
records. As a note, if you use getArray only the records you request are
instantiated. In other words it’s pretty handy for paging over larger
datasets. Doug From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Sims Gareth, On 7/20/06, Gareth
Cole <[EMAIL PROTECTED]>
wrote: Hi Dan, I built a PagedQuery.cfc a while back to handle paging. You
just initialize it with a query and the number of records you want per page. It
then has a whole load of methods for navigating around. Let me know if you want a copy. I'm still fairly new to OOP
with CF, so would welcome constructive comments Gareth -----Original
Message----- Yes so a getAll() returns 100 records but we want to
have x pages with x number of records per page. On
7/19/06, João Fernandes < [EMAIL PROTECTED]> wrote: What do you mean by a regular record? navigate between
records from any query?
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
- [Reactor for CF] query page record navigation Dan Vega
- RE: [Reactor for CF] query page record navigation João Fernandes
- Re: [Reactor for CF] query page record navigation Dan Vega
- RE: [Reactor for CF] query page record navigation João Fernandes
- RE: [Reactor for CF] query page record navigation Gareth Cole
- Re: [Reactor for CF] query page record navigation Doug Sims
- RE: [Reactor for CF] query page record navigation Doug Hughes
- RE: [Reactor for CF] query page record navigation Gareth Cole
