Editing Sub-report Elements
Sub-report Settings
Click on this property to bring up the “Sub-report Settings” dialog. Define the following settings on this dialog:
Query
You must specify the query that will be used as a data source for a sub-report. Note that this query may use the current instance of the business object being processed in the main report as a dynamic value (see Configuring Queries). For example, if the main report shows instances of the Account object and the sub-report shows instances of the Transaction object that belong to the account the query might look something like this:
FIND Transaction WHERE Transaction IN Account.Transactions
To specify a query press the Query button on the dialog and enter the properties of the query as described in Adding/Editing Queries.
Sub-report
Select the name of the sub-report from the list of other reports available in the business space version.
Report parameters
If the report requires any parameters, the names of these parameters will be displayed in the Parameters table (see also Reports). You must provide the values of these parameters by clicking on the Parameter expression cell in the table and typing in the values directly into the cell.
“When there is no data” options
These options refer to a situation when a sub-report has no data to show (for example, the Account object has no transactions yet). You can select the following options:
- Print nothing – select this radio button if you do not want to print anything.
- Print all except detail section – select this option if you would still like to print the title and/or summary of the sub-report (the Detail band will not be printed at all as there is no data).