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

calculating in ireport


cashshurley

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

the one that you want to do is:

 

create a field then set this as prompt so the user may input his/her variable everytime

then use this formula:

 

set the two to double not integer in case of deciaml. then set to display 2 decimal places.

 

new Double($F{field1}).doubleValue * new Double($F{field2}).doubleValue - this is your varialbe then formulathen set the variable calculation to nothing.

Link to comment
Share on other sites

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...