CxReports Subreports Guide¶
This guide will help you understand how to use subreports in CxReports. For an explanation what subreports are in CxReports, please refer to this link.
Important: Before you start, make sure you have a report type and a report template defined.
Creating a Subreport¶
To use subreports, you first need to create one:
- Under
Reportingsection selectSubreports - Click on the
Add new reportbutton. - Fill in the form and save the report.
Note
If this is your first time creating a report, please refer to Create your first report guide.
Setting Up Report Parameters¶
For a detailed explanation what parameters are, please refer to Report Parameters article.
Setting up parameters can be done in a few different ways, you can have reusable parameters, global parameters or you can add them locally in the report.
Using Subreports¶
- Drag and drop the
Flowcomponent into the page. - Drag and drop a component (for example, Text) into the page. You can use any component you like.
- On the right sidebar for the Text component, in the "Text" field, replace the default value
with
{$params.test}. Now, the value of the "test" parameter should appear on your page. If you named your parameter "description", you would access it through{$params.description}. - If you need more parameters, repeat the steps in the
Setting Up Parameterssection of this guide.