User Guide

Table Of Contents
Creating reports with the ColdFusion MX 7 reporting 783
4.
Specify a name, default label text, and data type. Data type options are the same as for
query fields.
5.
Specify calculation options:
Calculation Specifies the type of calculation that ColdFusion performs. Valid values are:
Average, Count, Highest, Lowest, Nothing, Standard Deviation, Sum, System, and Variance.
If you specify Nothing, you typically use the Perform Calculation On field to specify a
dynamic expression. With the exception of Nothing (for which you use the Perform
Calculation On field) and System (for which you write a customized scriptlet class), you use
these calculations for group, page, and report totals.
Perform Calculation On Specifies a field or expression. Click the ... button to display the
Expression Builder.
Initial Value Specifies an initial value for the calculated field.
6.
Specify reset options, as follows:
Reset Field When Specifies when to reset the calculated field value. Valid values are: None,
Report, Page, Column Group.
Reset Group If Reset Field When is set to Group, use this field to specify the group whose
group break triggers the reset.
7.
Click OK.
For additional information on calculated fields, see “Add Calculated Field dialog box” in Report
Builder online Help and “Expressions and the Expression Builder” on page 799.
To define an input parameter:
1.
Click the Fields and Parameters tab. By default, this tab is in the lower-right area of the Report
Builder window.
2.
Click Input Parameters.
3.
Click the plus sign (+) at the top of the tab.
4.
The Add Input Parameter dialog box appears.
Enter a value for the name field. This must match an input parameter, such as the name
attribute of a
cfreportparam tag included in the cfreport tag that invokes the report
definition.
5.
Enter the default label text.
6.
Specify a data type and default value. Data type options are the same as for query fields.
7.
Click OK.
For more information on using input parameters, see “Using input parameters to pass variables
and other data at runtime” on page 792 and “Using subreports” on page 800.