-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
Below is a better description of the flow
|
Fixed the issue by updating the
|
Hi, |
@teodord ... I don't have any sample JRXML. We have a suite of integration tests we run after deploying any code and this is where the failure occurred. In terms of report layout we are just using the Column Header, Detail, Group Header and Group Footer bands. Just to note our application builds a JasperDesign on the fly when we are executing a report. We don't save static JRXMLs |
Details:
Variable has the following properties:
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 conditiondetailBand.getBreakHeight() > columnFooterOffsetY - offsetY
in thewhile
loop is false leading toJRVerticalFiller.fillColumnBand()
being invoked.When the detail is being is filled the
JRPrintBand
would overflow because one of the fields stretches. As theJRPrintBand
will overflow it causesJRVerticalFiller.fillColumnBreak()
to be invoked and theJRPrintBand
to be refilled. AfterJRVerticalFiller.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.
The text was updated successfully, but these errors were encountered: