Answered
cfdocumentitem with variable ?
Hello,
I'm not sure if this possible, but I'm trying to display a 6 characters long variable in the footer of a page.
I used the code bellow and I always get the last variable of my query even though I see the current variable in the body of the html.
Is there a way to make this works in the footer?
I'm using coldfusion 7
Thanks,
Chantal
<html>
<head>
<cfdocument format="PDF">
</head>
<body>
<cfloop index="LoopCount" from="1" to="#form.DesgCount#">
<cfset desgcode = #form[chkBoxName]#>
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- correct desgcode--->
</tr>
</table>
<cfdocumentitem type="footer">
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- incorrect desgcode--->
</tr>
</table>
</cfdocumentitem>
</cfloop>
</cfdocument>
</body>
</html>
I'm not sure if this possible, but I'm trying to display a 6 characters long variable in the footer of a page.
I used the code bellow and I always get the last variable of my query even though I see the current variable in the body of the html.
Is there a way to make this works in the footer?
I'm using coldfusion 7
Thanks,
Chantal
<html>
<head>
<cfdocument format="PDF">
</head>
<body>
<cfloop index="LoopCount" from="1" to="#form.DesgCount#">
<cfset desgcode = #form[chkBoxName]#>
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- correct desgcode--->
</tr>
</table>
<cfdocumentitem type="footer">
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- incorrect desgcode--->
</tr>
</table>
</cfdocumentitem>
</cfloop>
</cfdocument>
</body>
</html>
