This procedure describes how to add a report template that contains sub-reports to the AgileAssets application so a JasperReport can be generated. For the purposes of this example, it is assumed that the report template was developed with the JasperReports development tool iReport.
Note: When you create the sub-report template in iReport, use the sub-report template wizard provided in iReport and accept all default settings as you proceed through the wizard. This will allow the sub-report template to be properly configured to work in the AgileAssets system.
Once the report and sub-report templates are defined in iReport, add them to the AgileAssets application by performing the following steps:
- In the module of the AgileAssets application to which the report will be added, open the Reports Management window.
- In the reports hierarchy in the left pane, locate the folder in which the report will be stored, right-click this folder, and select Insert Jasper Report. The system displays a dialog box so you may select the file that contains the report template.
- In the Select File dialog box, click the Browse/Choose File button to display a second dialog box to locate the file name on your computer.
- Locate the file for the main report (not the sub-reports) and then double-click the desired file name, which closes the second dialog box and shows the file name in the Select File dialog box.
- In the Select File dialog box, click the Upload button. The files for the main report are uploaded to the application server. A new record appears in the Reports tab that shows the main report.
- In the reports hierarchy in the left pane, locate the folder in which the report will be stored, right-click this report, and select Edit Jasper Subreports. The system displays a dialog box that shows the sub-reports associated with the Jasper Report.
- For the first sub-report listed in the tab, right-click the sub-report and then click Insert/Update Report from the shortcut menu that is displayed. The application displays a dialog box to select the file for the highlighted sub-report.
- Repeat steps 6 and 7 for the remaining sub-reports listed in the Sub-reports tab.
- Right-click the new record and then click the Show Report command corresponding to the desired output to display the newly uploaded report.
- Select Save.