Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFLpop

New Here ,
Feb 06, 2009 Feb 06, 2009
I've got a query that returns a variable number of records, with a check box and textbox on the form as follows...

<input type="checkbox" name="checkOpt" value=#PER_ID#>
<input type="text" name="txtDTEST#BLG_ID#" width="15%">

On the action form I want to loop through the values on the form. I can pick up the values of the checkbox, but I'm having trouble with any value I enter in the textbox. It's oaky if I select all the check boxes, but it I miss one out the value in the text box is n ot returned. I tried appending the value in the query onto the textbox name, but I keep getting errors


<cfif isdefined("form.checkOpt")>

<CFLOOP INDEX=i FROM=1 TO=#ListLen(checkOpt)#>

<CFSET ChkID=#ListGetAt(checkOpt,i)#>

<CFSET x=#ListGetAt(txtDTEST#BLG_ID#,i)#>

<cfoutput>#i#...App... #ChkID#...bldg...#x#<br></cfoutput>
</CFLOOP>

</cfif>

Thanks in Advance
Roy.
210
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2009 Feb 06, 2009
what is #BLG_ID, where does it come from and how does it relate to its
checkbox and to your loop index?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2009 Feb 06, 2009
LATEST
BLG_ID is a value from a query
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources