cfdocument header not supporting query results
in cf7 able use query output in document header.
now in cf8 when try use cfoutput content in header either error (when using query variable i.e. #var#) or if use #queryname.variablename# syntax first records information populating header entire recordset.
example:
<cfdocument format="pdf" bookmark="yes" fontembed="no">
<cfoutput query="somequery">
<cfdocumentsection name="#somequery.somevar#">
<cfdocumentitem type="header">
#somequery.somevar# <--does not work!
</cfdocumentitem>
<cfdocumentitem type="footer">
page #cfdocument.currentpagenumber# <--this works
</cfdocumentitem>
#content#
</cfdocumentsection>
</cfoutput>
</cfdocument>
now in cf8 when try use cfoutput content in header either error (when using query variable i.e. #var#) or if use #queryname.variablename# syntax first records information populating header entire recordset.
example:
<cfdocument format="pdf" bookmark="yes" fontembed="no">
<cfoutput query="somequery">
<cfdocumentsection name="#somequery.somevar#">
<cfdocumentitem type="header">
#somequery.somevar# <--does not work!
</cfdocumentitem>
<cfdocumentitem type="footer">
page #cfdocument.currentpagenumber# <--this works
</cfdocumentitem>
#content#
</cfdocumentsection>
</cfoutput>
</cfdocument>
it goes beyond that. i've been unable use scope variables in header/footer. not arguments, request, session, form, url nor else.
More discussions in Advanced Techniques
adobe
Comments
Post a Comment