couetbis Posted October 24, 2007 Share Posted October 24, 2007 Hi,I have a report with 2 subreports. Subreports return a total value. I want to addition this 2 total values (variables are differents). I try to create a new variable with expression :new Integer($V{value1}.intValue() + $V{value2}.intValue())but it's print always null ! An idea ? Link to comment Share on other sites More sharing options...
monodude Posted October 24, 2007 Share Posted October 24, 2007 You could play with the evaluation time for your variables. an evaluation time of "Report" may solve this issue Link to comment Share on other sites More sharing options...
monodude Posted October 24, 2007 Share Posted October 24, 2007 You could play with the evaluation time for your variables. an evaluation time of "Report" may solve this issue Link to comment Share on other sites More sharing options...
couetbis Posted October 24, 2007 Author Share Posted October 24, 2007 Thanks for your answer but it don't solve the problem.In description of my variable, reset type is Report and Increment type is None. In use of my variable, evaluation time is Report. Link to comment Share on other sites More sharing options...
jmurray Posted October 25, 2007 Share Posted October 25, 2007 The variables in your main report need to have a Calculation Type of "System" for them to receive the return values from the subreports Link to comment Share on other sites More sharing options...
couetbis Posted October 25, 2007 Author Share Posted October 25, 2007 I try but it's change anythings.I test in other configuration, with many details and there is a lag in totals.I explain, for the first record, I have "null" for "2+2", for the second "4" for "6+6", etc. why ? An other idea ? 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