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

Multiplying fields in ireport


surf3rb0y

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 5 months later...

Also you can:

 

1) Create a new field (in the SQL expression) called "total" for example. To make that you must write: SELECT SUM(tablename1.rate} * tablename2.hours) as "total"

 

2) Or you can create a new double variable (SUM calculation type) and in the "variable expression" write $F{rate}.doubleValue() * $F{hours}.doubleValue()

 

See you

 

Rafa

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