13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CrosstabsFigure 16-8Adding a Row GroupRow and column groups are displayed in the outline view. To add a row group, for instance, right-click the rows node andselect Add Row Group (see Figure 16-8).The new group appears in the outline view and the relative cells are created in the crosstab designer. You need to set a BucketExpression—that’s an expression used to group the rows. For example, we can add a row group to show the cities of eachcountry. In that case, a valid expression could be the field SHIPCITY (the expression would look like $F{SHIPCITY}). Theexpression must be set in the row group properties.Figure 16-9The layout after the new rowThe expression is the only information that must be set for each new group. Other crosstab settings include the following:Total positionOrderComparator expressionDefines the presence of a row to show subtotalsOrder of the values in the group (Ascending or Descending)Returns an instance of java.util.Comparator that must be used toorder the valuesUsing the designer, column and row sizes can be modified directly by dragging the cells’ edges. The content of each cell mustbe completely contained in the cell (more or less as it happens with bands in the master report).313

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!