Reader small image

You're reading from  Pentaho 5.0 Reporting by Example: Beginner's Guide

Product typeBook
Published inAug 2013
PublisherPackt
ISBN-139781782162247
Edition1st Edition
Tools
Right arrow
Author (1)
Right arrow

Time for action – creating our first Subreport


The steps for creating our first Subreport are as follows:

  1. 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.
  2. 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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Pentaho 5.0 Reporting by Example: Beginner's Guide
Published in: Aug 2013Publisher: PacktISBN-13: 9781782162247