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>

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

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support