Time for action – creating our first Subreport
The steps for creating our first Subreport are as follows:
-
We will create our first Subreport and place it in the Report Header section. Then we will edit the internally used Parameters and import the value of the field
country_id
. Finally, we will create a JDBC data set that will be filtered by the value imported from the main Report. We add a Sub-report object () to the Group Header section. We drag-and-drop it in 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. PRD will ask us about the data set to be used. We click on the option Cancel. We name our Subreport so it is easier for reference. We go to the Structure tab, choose the sub-report node, and configure the following:
Attributes.name =
SubReportBarChartAs
: This Subreport will display information related to the country that the final user chooses. We should make the Subreport receive...