i used what you posted to get a start, but i think i want to do this a slightly different way. on my link page i'm creating a session array that contains all my ID's as follows:
<cflock timeout = "10" scope = "SESSION" type = "Exclusive">
<cfset Session.myarray = ArrayNew(1)>
<cfloop query="GetIncidentDetail">
<cfset Session.myarray[CurrentRow
</cfloop>
i'm then passing the index value of the record the user selects through the URL like this:
<a href="Edit_Incident.cfm?st
then on my edit page i have a parameter like this:
<cfparam name="URL.StartRow" type="numeric">
then i can set the incident_number of the record i want by going:
<cfset Incident_Number = #Session.MyArray[URL.Start
this all works fine. my issue is coming because i have a "next" button at the bottom of my form. when the next button is clicked, i need to submit the form to itself and set incident_Number as follows:
<cfset Incident_Number = #Session.MyArray[URL.Start
I need a way to store the current value of the index. obviously when i do above, i can get to the next record, but not two records down b/c i'm always starting with the start_row and adding 1. does this make sense?
Main Topics
Browse All Topics





by: Jester_48Posted on 2005-05-24 at 06:06:03ID: 14067812
on the link have sopmething link this
fif query.currentRow NEQ 1>#query.id[currentRow-1]# <cfelse>nu ll</cfif>& next=<cfif query.currentRow NEQ query.recordCount>#query.i d[currentR ow+1]#<cfe lse>null</ cfif>&star tRow=#quer y.currentR ow#
">
page?view=query.id&prev=<c
then on teh processing page
<cfoutput query="getInfo" maxrows="#pageReturn#" startrow="#url.startRow#-1
output prev and next here
</cfoutput>