• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfdocument and dynamic data

Explorer ,
Apr 18, 2006 Apr 18, 2006

Copy link to clipboard

Copied

I've been coding in CF for quite a while but have never used <cfdocument>. The CF app that I've built is used primarily for creating customized reports against a corporate database. The user defines the desired report output; a SQL query is generated dynamically, and the report output is created dynamically. I tried wrapping <cfdocument> around the output code, but the browser hangs when I execute a report. Can <cfdocument> handle non-static output? If not, is there a way pass the output to <cfdocument> in straight HTML? Please point me in the right direction!

Thanks! Pam
TOPICS
Getting started

Views

428

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2006 Apr 20, 2006

Copy link to clipboard

Copied

cfdocument basically takes a PDF or Flash "snapshot" of the content currently in the tag. To make documents from dynamic output, you would have to take a series of snapshots, for example, by means of a loop. However, Coldfusion will not return any HTML or CFML code outside the <cfdocument></cfdocument> tag pair. Hence, one solution is to gather your dynamic content as one snapshot.

An example:



Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 26, 2006 Apr 26, 2006

Copy link to clipboard

Copied

Thanks much for the information! Hmmm ... John / George / Paul / Ringo ... you must be as old as me!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2006 Apr 26, 2006

Copy link to clipboard

Copied

LATEST
!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation