Jump to content
Changes to the Jaspersoft community edition download ×

Formula field in iReport


ktrinad

Recommended Posts

By: T.Gopalakrishnan - gopal03

Formula field in iReport

2003-09-01 04:18

Hello friends

I am new to iReport tool.

I want to create a formula field(Expression) to multiply two database fields and i need to show the result if it is greater than zero.

Can any one give an sample code for this

Thanks

 

 

 

 

By: Giulio Toffoli - gt78

RE: Formula field in iReport

2003-09-15 05:10

 

hi,

use this expression.

 

(($F{my_number1}.doubleValue() * $F{my_number2}.doubleValue() > 0) ? new Double($F{my_number1}.doubleValue() * $F{my_number2}.doubleValue()) : null)

 

Giulio

Link to comment
Share on other sites

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