8 Replies Latest reply on Mar 7, 2008 1:34 PM by EricGyenes

    cfdocument header not supporting query results

    EricGyenes
      IN CF7 I was able to use query output in the document header.

      Now in CF8 when I try to use cfoutput content in the header I either get an error (when using the query variable only i.e. #var#) or if I use the #queryname.variablename# syntax I get the first records information populating the header for the 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>