Skip to content

Value (variable) displayed in GroupFooter after upgrading from JasperReports API 6.3.1 to 6.7.0 is null. This happens on page 11/14 on the report. #51

Description

Details:

Variable has the following properties:

  • Reset type = GROUP
  • Increment Type = NONE
  • Calculation = FIRST

Issue occurs when after printing the GroupHeader on the 10th page there is not enough space to print the Detail band so the variables are recalculated.

The flow is something like:
In the JRVerticalFiller.fillDetail() the condition detailBand.getBreakHeight() > columnFooterOffsetY - offsetY in the while loop is false leading to JRVerticalFiller.fillColumnBand() being invoked.
When the detail is being is filled the JRPrintBand would overflow because one of the fields stretches. As the JRPrintBand will overflow it causes JRVerticalFiller.fillColumnBreak() to be invoked and the JRPrintBand to be refilled. After JRVerticalFiller.fillColumnBreak()
JRCalculator.recalculateVariables() is called.
This method sets the variables incremented value to the previous incremented value but as the variable was reset when the group changed the previous incremented value is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions