Jump to content
We've recently updated our Privacy Statement, available here ×

Variable SUM and multiple pages


Hcharles

Recommended Posts

Hi guys,

 

Congratulations for the great job you're doing.

I'm new to iReport (v. 2.0.4) and my question is probably trivial.

 

I have a multiple pages report that contains, let's say 5 records with a field "amount".

The value of the amount for each record is 100.

 

At page break, after printing 3 records the SUM is 400 and on the next page with the last 2 records, the SUM is 100. Instead of 300 for the first page and 200 for the second.

 

I'm using a VAR type BigDecimal, Calculation Type is SUM, Reset Type is PAGE and Variable Expression is $F{itemAmount}.

 

What am I missing?

 

I'll appreciate any hint and tips.

Thanks.

-Charles

Link to comment
Share on other sites

  • 9 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...