A report function that calculates the quotient of two summed fields (columns) from the report's data row. This
function produces a global total. The total sum of the group is known when the group processing starts and the report
is not performing a prepare-run. The sum is calculated in the prepare run and recalled in the printing run.
The function can be used in two ways:
to calculate a quotient for the entire report;
to calculate a
quotient within a particular group;
This function expects its input values to be either java.lang.Number
instances or Strings that can be parsed to java.lang.Number instances using a java.text.DecimalFormat.
The function undestands tree parameters. The dividend parameter is required and denotes the name of an
ItemBand-field which gets summed up as dividend. The divisor parameter is required and denotes the name
of an ItemBand-field which gets summed up as divisor.
The parameter group denotes the name of a group. When this group is started, the counter gets reseted to
null. This parameter is optional.
author: Thomas Morgner
The value depends (obviously) on the function implementation. For example,
a page counting function will return the current page number.
The value of the function.
Defines the function's dependency level. This method forwards all calls to the interal functions.
Parameters: level - the dependency level. See Also:Expression.getDependencyLevel
Defines the ExpressionRune used in this expression. The ExpressionRuntime is set before the expression receives
events or gets evaluated and is unset afterwards. Do not hold references on the runtime or you will create
memory-leaks.
Parameters: runtime - the runtime information for the expression