You could pass the current item id and set nextquery WHERE ID > CURID or
WHERE ID < CURID; 
or you could use startrow
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_1
7.html 


Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged



-----Original Message-----
From: Scott Stewart [mailto:sstwebwo...@bellsouth.net] 
Sent: Friday, May 01, 2009 10:13 AM
To: cf-talk
Subject: list question


Hey all..

 

I have a ColdFusion list of orderIDs generated from a query..

The list drives a pair of hrefs (next and previous)

 

The user will click on a link from another page which opens an order detail.

At the top of the detail page are the next and previous links.

 

How can I determine the next item in the list and the previous item in the
list, given that the selected item is not list first or list last..

 

Thanks

 

sas

 

--
Scott Stewart
ColdFusion Developer
4405 Oakshyre Way
Raleigh, NC 27616
(h) 919.874.6229 (c) 703.220.2835

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322102
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to