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

manipulate recordset inside cfr

New Here ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

with cfreport i can add some function to my report.

i would access to recordset (passed to cfr) for ordering it.

query to cfr -> ordering recordset in cfr -> print

is this possible?

thanks

TOPICS
Reporting

Views

802
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
Advocate ,
Sep 17, 2013 Sep 17, 2013

Copy link to clipboard

Copied

LATEST

Yes, this is possible.

For example, in the calling CFM file, add your parameter:

<cfreportparam name="prmOrderBy" value = "order by LastName">

Then, in Report Builder, add the following line at the bottom of the SQL query:

#param.prmOrderBy#

Naturally you wouldn't hard-code the "order by" clause, you would use a variable.

You could, of course, handle the query dynamically in your calling CFM file and pass the query result-set to the report so that the report does not run its internal query.

Votes

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