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

Variable expression from a parameter


2004 IR Help

Recommended Posts

By: Martin S.H. Ra - sfnassa

Variable expression from a parameter

2004-11-19 11:13

I want to create a variable containing the result of some "runtime defined" aritmethic operations with fields of the report.

 

For example:

 

-If the user wants a multiplication of 2 fields the variable expression must be:

 

new Double($F{field1}.doubleValue() * $F{field2}.doubleValue())

 

-If the user wants a division of 2 fields the variable expression must be:

 

new Double($F{field1}.doubleValue() / $F{field2}.doubleValue())

 

and so on.

 

I tried to pass as a parameter the expression to be set but it returns null.

 

Any solution?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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