matteo.agostoni Posted May 25, 2016 Share Posted May 25, 2016 Hello,I have a main report and inside two different subreports.From each of the subreport I send back to the parent report a "returning value" (numerical value defined as java.lang.Double.Imagine $V{value_1} is the formula for the value returned from the first subreport and $V{value_2} is the formula for the value returned from the second subreport.They are processed and passed back fine, infact if I insert $V{value_1} and $V{value_2} in the main report, they show correctly.My problem is now that I need to define a formula in the main report to make the sum of the 2 values.I created a variable, $V{totalvalue}, defined as java.lang.Double; the formula is: $V{value_1} + $V{value_2}If I insert it in the main report $V{totalvalue}, it display always "null".It is probably due to an issue with the "time of evaluation" but I'm not able to figure out the correct settings I have to use.Can someone help me? Link to comment Share on other sites More sharing options...
kkriplani Posted May 25, 2016 Share Posted May 25, 2016 Hi,First of all check if both these variables return a value in the main report by printing them.Regards,KKriplani Link to comment Share on other sites More sharing options...
matteo.agostoni Posted May 25, 2016 Author Share Posted May 25, 2016 As I already wrote in my main post, I already inserted the 2 variables in the main report, and they print correct values Link to comment Share on other sites More sharing options...
anhmyphap99 Posted September 19, 2018 Share Posted September 19, 2018 Same me.Anyone can help? 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