Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Description

Excerpt

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.

...

  • 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

Code Block
xml
xml

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