User Guide

Table Of Contents
802 Chapter 32: Creating Reports for Printing
6.
Click Finish.
The Report Builder adds the subreport to the main report, saving the report to subreport
mappings as subreport parameters.
7.
To modify subreport parameter settings, select the subreport and click on Subreport Parameters
in the Properties sheet.
Adding a new subreport to a report
If you are certain of the data required for a subreport, you can define a new subreport while
adding it to the main report.
To add a new subreport to a report:
1.
Define or open your main report.
2.
Click the Subreport icon in the toolbox.
3.
Drag an area for the subreport in the desired report band.
The Subreport Source panel appears.
4.
Select As a New Report and click Next.
The Define Query Fields panel appears.
5.
Click Query Builder.
The Query Builder appears.
6.
Select the tables and columns for the subreport.
7.
Specify a WHERE clause for the report by using the Condition and Criteria columns for the
key columns.
Specify WHERE for Condition and either
='#CFVariable#' (string column) or
=#CFVariable# (numeric column) for Criteria, and then overtype CFVariable with the name
of the input parameter for the subreport (you define the input parameter name later in the
procedure.)
8.
Click Save.
9.
Click Next.
The Define Report Grouping panel appears.
10.
Specify grouping fields, if appropriate for your subreport.
11.
Click Next.
The Report Layout panel appears.
12.
Specify Free Form or Grid. Then click Next.
The Report Style panel appears.
13.
Specify Only Detail Band and click Next.
The Report Theme panel appears.
14.
Specify a color scheme and click Next.
The Report Name panel appears.