Writing the Genero BDL report program / Sub reports |
Create a new empty report design document (4rp). Select the master report data source as the data schema. Detected sub report calls are shown in the report designer. They appear as nodes in the data view, triggers the structure view, and images in the document view.
In the data view, the invocation of the sub report is displayed at its position in the application source. While the execution of the sub report requires three invocations ( START REPORT, OUTPUT TO REPORT and FINISH REPORT), only the location of the START REPORT item is shown in the data view.
Figure 1. Sub reports in the Data View
A sub report trigger is created in the document report structure. Set the URL property of the sub report trigger to a report design that matches the sub report schema.
Figure 2. Sub report triggers in the Report Structure
Sub reports display as images in the document view in the Central Work Area. Double-click the image to open the design file for editing.