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-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega
Sent: 19 July 2006 21:42
To: [email protected]
Subject: Re: [Reactor for CF] query page record navigation

 

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?

João Fernandes


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Dan Vega
Sent: Wed 19-Jul-06 9:24 PM
To: [email protected]
Subject: [Reactor for CF] query page record navigation

I see that with an Iterator you can set the total amount of records returned
along with the starting record. This would be great for page navigation of
records. Is there anyway to do this with a regular record? I am trying to
figure out the easiest way to provide this feature for my application
without writing a custom funciton.

<cfset customers = AddressRecord.getCustomerIterator ().getQuery(10, 5) />


--
Dan Vega
[EMAIL PROTECTED]


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




--
Dan Vega
[EMAIL PROTECTED]
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to