Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NAVIGATING THRu RESULTROW IN COLDFUSION

Status
Not open for further replies.

vista

Programmer
Jul 4, 2000
9
IN
Iam really going thru a&nbsp;&nbsp;bad&nbsp;&nbsp;time&nbsp;&nbsp;and&nbsp;&nbsp;i request u<br>&gt;not&nbsp;&nbsp;to direct me&nbsp;&nbsp;to someone else.I need this stuff<br>&gt;really bad.Will i find&nbsp;&nbsp;coldfusion programmers in<br>&gt;MIRC..so that i can chat with them..or&nbsp;&nbsp;send&nbsp;&nbsp;them<br>&gt;codes.Please answer my question ..i really need the<br>&gt;solution to the&nbsp;&nbsp;below&nbsp;&nbsp;very very badly.<br>&gt;<br>&gt;I am using coldfusion 4.0 on windows and i use<br>&gt;MS-Access.I have a form which submits the&nbsp;&nbsp;query(a<br>&gt;select query)..and i get the&nbsp;&nbsp;result in the&nbsp;&nbsp;next<br>&gt;page.Now i want to know&nbsp;&nbsp;how&nbsp;&nbsp;do i navigate&nbsp;&nbsp;thru the<br>&gt;result which is in the form of&nbsp;&nbsp;a table.I want to use<br>&gt;4 buttons(First,Next,Prev and Last).once&nbsp;&nbsp;the user<br>&gt;presses the first button the cursor&nbsp;&nbsp;automatically<br>&gt;points on the first row..on next it&nbsp;&nbsp;goes to the next<br>&gt;row..and&nbsp;&nbsp;so on..I want to know&nbsp;&nbsp;how&nbsp;&nbsp;do i do this<br>&gt;using coldfusion..pls&nbsp;&nbsp;mail me&nbsp;&nbsp;any suggestions u<br>&gt;have.if i have to use javascript..then how&nbsp;&nbsp;do i go<br>&gt;about it.I saw Recordset function in VB script..can i<br>&gt;use anything similar to this?if possible&nbsp;&nbsp;pls&nbsp;&nbsp;send me<br>&gt;<br>&gt;<br>&gt;I saw all this&nbsp;&nbsp;is in a ASP book..which uses VB<br>&gt;script.Now i cannot use them here coz&nbsp;&nbsp;i require it<br>&gt;to run in a&nbsp;&nbsp;netscape also..so pls help me by giving<br>&gt;me a solution for&nbsp;&nbsp;the same..by using coldfusion.<br>&gt;<br>&gt;I am sending u three files ..one&nbsp;&nbsp;is&nbsp;&nbsp;the database<br>&gt;file(hsnakar.mdb)..pls refer to the info table..one is<br>&gt;the select/cfm file and other is the copy of the<br>&gt;selectquery.cfm..pls&nbsp;&nbsp;send me&nbsp;&nbsp;the neccessary code<br>&gt;required INCORPORATED..in the copy...selectquery.cfm<br>&gt;<br>&gt;I will be eternally greatful to ya<br>&gt;<br>&gt;Thanx in advance&nbsp;&nbsp;for&nbsp;&nbsp;the&nbsp;&nbsp;reply.<br>&gt;<br>&gt;-shanka
 
say your query is named my_query<br>&lt;CFQUERY NAME=&quot;my_query&quot; DATASOURCE=&quot;..&quot;&gt;<br>select my_row<br>from ..<br>&lt;/CFQUERY&gt;<br>&lt;CFSET the_array_for_my_query = ArrayNew(1)&gt;<br>&lt;CFLOOP QUERY = &quot;my_query&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&lt;CFSET the_array_for_my_query[CurrentRow]= my_query.my_row[CurrentRow]&gt;<br>&lt;/CFLOOP&gt;<br><br>now, the 1st row is : the_array_for_my_query[1]<br>next one : the_array_for_my_query[your_index+1]<br>previous one : the_array_for_my_query[your_index-1]<br>the last one : the_array_for_my_query[my_query.recordcount]<br><br>hope that helps ! but, hey, all that is in the docs :-/<br><br><br>
 
Thanx ....IZA..iam gonna&nbsp;&nbsp;try the&nbsp;&nbsp;code and get back to ya..on the same.
 
<br>Wel..iam sorry..maybe  iam not  doing it  correct..i am not  getting it to  work.<br><br>Can i mail ya my files iza..so that u can take a look at them..The size is also something like  89kb ..u can make aby modifications u want on these files..(There are 3  files)..one  database(.mdb) and 2 cfm files.
 
what are the new errors ?? why isn't it working ?? <br>i'm sorry about the email but i'm at work and there's really plenty of filters and things like those :-/// <p> <br><a href=mailto:miss_lezard@bigfoot.com>miss_lezard@bigfoot.com</a><br><a href= > </a><br>
 
<br><br>I 'll send&nbsp;&nbsp;ya&nbsp;&nbsp;a mail with all these&nbsp;&nbsp;files.<br><br>The error&nbsp;&nbsp;which it is&nbsp;&nbsp;givng me is&nbsp;&nbsp;it&nbsp;&nbsp;says&nbsp;&nbsp;that that the&nbsp;&nbsp;it is not&nbsp;&nbsp;able&nbsp;&nbsp;to recognize (.)<br>in this folowing sentence.<br><br>my_query.my_row[CurrentRow]<br><br>Anyways&nbsp;&nbsp;i think i better mail ya the&nbsp;&nbsp;thing..Thanx a lot&nbsp;&nbsp;for&nbsp;&nbsp;the&nbsp;&nbsp;support.
 
you can try to send the file but i'm not sure it'll reach me<br>try at <A HREF="mailto:miss_lezard@bigfoot.com">miss_lezard@bigfoot.com</A> <p> <br><a href=mailto:miss_lezard@bigfoot.com>miss_lezard@bigfoot.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top