User Guide

Table Of Contents
792 Chapter 32: Creating Reports for Printing
To disable browser display of the CFR file:
1.
Open the Report Properties dialog box by selecting Report > Report Properties from the menu
bar.
2.
Clear the Allow Direct .cfr Browser Invocation check box.
3.
Click OK.
Using input parameters to pass variables and other data at runtime
Input parameters are data fields that you pass to the report at runtime. You can place input
parameters directly on a report band or you can use them as input to a calculated field.
Define input parameters in the same manner as query fields. You can specify a default value that
ColdFusion uses when there is no corresponding parameter. For more information on defining
input parameters, see “Defining, modifying, and using fields and input parameters on page 782.
You use input parameters in the following ways:
Through the cfreportparam tag Input parameters must correspond, by name, to
cfreportparam tags embedded in the cfreport invocation. For example, if you define an
input parameter named ReportTime, you pass a
cfreportparam tag with a name attribute set
to ReportTime, as the following example shows:
<cfreport format="PDF" template="FourthReport.cfr" query="#coursedept#">
<cfreportparam name="ReportTime" value="#DateFormat(Now())#,
#TimeFormat(Now())#">
</cfreport>
Subreport parameters When a subreport requires information from a main report, you
define subreport parameters in the main report and corresponding input parameters in the
subreport. For more information, see “Using subreports” on page 800.
For information on dynamically populating input parameters at runtime, see Advanced query
mode” on page 797.
Configuring RDS
You must configure one RDS server for each ColdFusion MX server for which you define reports.
After you configure an RDS server, you can use the Query Builder to access data sources that you
defined in the associated ColdFusion MX server, and select database columns for use as query
fields in a report.
To add an RDS server:
1.
Open the Preferences dialog box by selecting Edit > Preferences from the menu bar.
2.
Click Server Connection.
3.
Click the plus sign (+) next to the drop-down list in the upper-left corner of the dialog box.
The Configure RDS Server dialog box appears.