How can I increment a variable with value of another variable in JasperReports?
问题 I need to make a grand total of the items I'm counting in a subReport. To do that, I think I need to add the value of that variable to another variable for each iteration, or "increment" it by that value. The subReport gets called for each group, and I get a total for that group. I need to add the variable values, rather than database columns/fields. I'm receiving an integer returnValue from the subReport , which is itself the count of rows in the sub-report. I want to get the grand total,