shanakaperera08 Posted April 13, 2014 Share Posted April 13, 2014 I created a variable and set the variable expression as $P{parameter2}+$P{parameter1}. Both parameter values' variable class set as java.lang.Double and as well as created variable too.but I got only a null value as the answer. Kindly help me on this . Thank you. Link to comment Share on other sites More sharing options...
marianol Posted April 14, 2014 Share Posted April 14, 2014 Looks like what you are doing is right.. Are any of the Parameter values null? Can you post a sample JRXML? Link to comment Share on other sites More sharing options...
sadakar Posted April 21, 2014 Share Posted April 21, 2014 On which band are you trying to pritn the value of the variable ? Try to drag and drop the created varialbe on Title or any band(Except Detail). While you are perfroming dragging and dropping it'll asking you sum , nothing , sub and etc. This will helpful to you. Also check whether you are able to get values into parameters or not( drag the parameters to Title band and have a preview). 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