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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Generated Variable Help

Status
Not open for further replies.

chlebicki

Technical User
Jul 4, 2006
31
US
Hi,

I am trying to create a dynamic variable created in a dynamic table.

My code is:
<cfoutput...
400 <cfset dad = rs#PAMInformation.PAM_ID#>
401 <cfif Success_#dad# EQ "yes">
402 Uploaded Successfully!
403 <cfelse>.....

The error message I am getting is in line 401 where it says:
Invalid CFML construct found on line 401 at column 55.
Coldfusion was looking at the following text:
#
The CFML compiler was processing:
>a cfif tag beginning on line 401, column 42


You see anything wrong with my statement? I am just pulling the product's unique ID and attaching it to "Success_" Can this be done?

Thanks,
Craig

 
Falconseye,

I tried your last recommendation but that will always return a "yes" result.

Here is some of my code copied so you might get a better idea of what I am trying to do:

<cfoutput query="rsPamInformation">
<tr>
align="center">#YesNoFormat(rsPamInformation.Sound)#</div></td>
<td width="75"><div align="center">#rsPamInformation.EstablishmentName#</div></td>
<td width="100"><div align="center">#rsPamInformation.Venue#</div></td>
<td width="135"><div align="center">#rsPamInformation.City#</div></td>
<td width="50"><div align="center">#rsPamInformation.State#</div></td>
<td width="100"><div align="center">
<cfset dad = #rsPamInformation#>
<cfif Evaluate("Success_#dad#") is "yes">
Uploaded Successfully!
<cfelse>
<input type="file" name="upload_#rsPamInformation.PAM_ID#" /></cfif>
</div></td>
</tr>
</cfoutput>
</table>


Any ideas?
Thanks,
Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top