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

Export dynamic query to excel

Participant ,
Apr 03, 2008 Apr 03, 2008

Copy link to clipboard

Copied

Hello,

I want to export a dynamic query result via button to excel.
I have a search template from where the users want to export the query results by clicking a button to an excel file.
Is it possible?
TOPICS
Advanced techniques

Views

540

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

correct answers 1 Correct answer

Participant , Apr 07, 2008 Apr 07, 2008
Hello Dan,

yes, query as session variable works fine. Thank you for help!

Votes

Translate

Translate
LEGEND ,
Apr 04, 2008 Apr 04, 2008

Copy link to clipboard

Copied

Make the query a session variable. When the user clicks the button, take them to another page where you can use cfheader and cfcontent to export to excel.

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
Participant ,
Apr 07, 2008 Apr 07, 2008

Copy link to clipboard

Copied

LATEST
Hello Dan,

yes, query as session variable works fine. Thank you for help!

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 04, 2008 Apr 04, 2008

Copy link to clipboard

Copied

Hi,
Try adding the header

<CFHEADER NAME="Content-Disposition" VALUE="attachment; FILENAME=resultFiles.xls">
<CFCONTENT TYPE="application/vnd.msexcel">

to the file and try. This will open the output file as an Excel document.

- Prasanth

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
Advisor ,
Apr 04, 2008 Apr 04, 2008

Copy link to clipboard

Copied

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