Copy link to clipboard
Copied
I'm new at this, but i want to be able to retrive values from succeeding rows while i'm outputting results from a query. the table in the datasource is a program schedule, each row represents one hour of weekly programming, and i want to be able to look ahead to see when the next program starts. can i grab values from a designated row and column of a table or query?
Copy link to clipboard
Copied
I think what you are looking for is something like this.
<cfset nextStartTime = queryName["startTimeColumnName"][currentrow+1] />
You can access queries like multimensional arrays, so I am telling it to get me the startTimeCoulmnName value from the next record.
Jason
Copy link to clipboard
Copied
OK. Thank you for that. I think that solves my problem. I have to check each succeeding row to see when the program changes, which could take several rows, because programs can last hours. So the nextstarttime could be several rows ahead. Thanks again.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more