Description
Excerpt |
---|
A report function that stores the result of a calculation for a group or the complete report. |
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
Code Block | ||||
---|---|---|---|---|
| ||||
<function class="org.jfree.report.function.TotalCalculationFunction" deplevel="" name="TotalCalculation_Group"> <properties> <property name="group">GROUP</property> <property name="field">column</property> </properties> </function> |