Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

A report function that stores the result of a calculation for a group or the complete report. The field value, that was read when the group finished, is stored and returned when the group gets active again in a higher processing level.
This function can be used to calculate total values for a group, e.g. a TotalMax for the group, which returns the maximum value encountered for that field in the current group. The computed values are available to all bands of the group.

The function understands two parameters:

  • field parameter is required and denotes the name of an ItemBand-field which gets summed up.
  • group parameter denotes the name of a group. When this group is started, the counter gets reset to null.

    Example

<function class="org.jfree.report.function.TotalCalculationFunction" deplevel="" name="TotalCalculation_Group">
  <properties>
    <property name="group">GROUP</property>
    <property name="field">column</property>
  </properties>
</function>
  • No labels