2004 IR Help Posted September 3, 2006 Share Posted September 3, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now