Time for action – creating and configuring the second Subreport
We will create another Subreport, but this time we will place it in the Details section so that it is executed for each row. Then we will edit the internally used Parameters and import the value of the field city_id
. We will create a JDBC data set that will be filtered by the value imported from the principal Report. Finally, we will configure the layout of the Subreport. The steps for creating and configuring the second Subreport are as follows:
- We add a Sub-report object () to the Details section. We drag-and-drop it to the area that we have left empty.
- After doing this, PRD will ask us if we want the Subreport to be Banded or Inline. We should click on the Inline button.
- When PRD asks us about the data set to be used, we click on the option Cancel.
- We go to the Structure tab, choose the sub-report node, and configure the following:
- Attributes.name =
SubReportTable
- Attributes.name =
- This Subreport will display information related to different...