Ask a Question related to Coldfusion Database Access, Design and Development.
-
LusanInc #1
problem with lists
I have the following code in test1.cfm with a struct that work just fine...
<cfloop index="ind" from="1" to="#miQuery.recordcount#">
<tr>
<cfset cbname="cb_" & ind>
<cfset refname="ref_" & ind>
<cfset monto="mon_" & ind>
<cfset fecha="fec_" & ind>
<td width="6%"><input type="checkbox" name="cbs" value="#cbname#"></td>
<td><div align="center"><input name="#refname#" type="text"
value="#cb[ind].refMemb#"></div></td>
<td><div align="center">
<input name="#monto#" type="text" value="#cb[ind].montoP#">
</div></td>
<td><div align="center"><input name="#fecha#" type="text"
value="#cb[ind].fechaP#"></div></td>
</tr>
</cfloop>
And the action page is test2.cfm...
<cfif isdefined("form.submit")>
<cfparam name="form.cbs" default="">
Los cambios fueron:
<table width="80%" border="0">
<tr>
<td>Referencia</td>
<td>Monto</td>
<td>Fecha</td>
</tr>
<cfloop index="i" list="#form.cbs#">
<cfoutput>
<tr>
<td>#form["ref_" & i]#</td>
<td>#form["mon_" & i]#</td>
<td>#form["fec_" & i]#</td>
</tr>
</cfoutput>
</cfloop>
</table>
</cfif>
but when it call to the data in the list of the loop it doesnt do anything and
refer me to a 500 internal server error.
Hope you guys can help me with that.
LusanInc Guest
-
Form Lists Problem-Question
Here is what I am trying to do with MX7and an Access db. I have a table of member data that includes their email address. (Table column = Email) ... -
Problem combing multiple lists into one
I have three lists (m1,m2,m3) and I need to combine them into one list (m4): <cfset m1 = valuelist(search2.cat)> <cfset m2 =... -
Binding Lists Problem
I have a problem when I bind a list's Items to a TextArea or to a Label. The binding doesn't work if I have more than one scenes. Can anybody tell... -
netTextResult with lists problem
Hi!, I'm a student in holland and I'm curently creating a database with director but I've run into a small problem... I have written the next... -
lists, attaching behaviour dynamiclly, update lists
Hello, I am trying to get these scripts to work correctly. What I am trying to do is: 1) Look into a folder called 'tank,' then when this is... -
LusanInc #2
problem with lists
I have the following code in test1.cfm with a struct that work just fine...
<cfloop index="ind" from="1" to="#miQuery.recordcount#">
<tr>
<cfset cbname="cb_" & ind>
<cfset refname="ref_" & ind>
<cfset monto="mon_" & ind>
<cfset fecha="fec_" & ind>
<td width="6%"><input type="checkbox" name="cbs" value="#cbname#"></td>
<td><div align="center"><input name="#refname#" type="text"
value="#cb[ind].refMemb#"></div></td>
<td><div align="center">
<input name="#monto#" type="text" value="#cb[ind].montoP#">
</div></td>
<td><div align="center"><input name="#fecha#" type="text"
value="#cb[ind].fechaP#"></div></td>
</tr>
</cfloop>
And the action page is test2.cfm...
<cfif isdefined("form.submit")>
<cfparam name="form.cbs" default="">
Los cambios fueron:
<table width="80%" border="0">
<tr>
<td>Referencia</td>
<td>Monto</td>
<td>Fecha</td>
</tr>
<cfloop index="i" list="#form.cbs#">
<cfoutput>
<tr>
<td>#form["ref_" & i]#</td>
<td>#form["mon_" & i]#</td>
<td>#form["fec_" & i]#</td>
</tr>
</cfoutput>
</cfloop>
</table>
</cfif>
but when it call to the data in the list of the loop it doesnt do anything and
refer me to a 500 internal server error.
Hope you guys can help me with that.TextAnd the action page is test2.cfm...
LusanInc Guest
-
zoeski80 #3
Re: problem with lists
Hi Lusanlnc
Sorry, not sure where you're getting the error - is is on the CFLOOP?
Try something like the attached for the CFLOOP on test2.cfm
HTH
Zoe
<cfloop index="i" list="#form.cbs#">
<cfoutput>
<tr>
<td>#Evaluate('form.ref_#i#')#</td>
<td>#Evaluate('form.mon_#i#')#</td>
<td>#Evaluate('form.fec_#i#')#</td>
</tr>
</cfoutput>
</cfloop>
zoeski80 Guest



Reply With Quote

