joepmo Posted February 28, 2010 Share Posted February 28, 2010 Is it still true that the results of subreport variables cannot be used in main report variable calculations? The last that I knew of you had to encapsulate your calculation in field on the main report. For example I want to take the results of subreport variable SV1 and divide it by the current amount in main report variable MV1 and then store those results in main report variabl MV2, so that I can further manipulate the results. thanks,Joe Link to comment Share on other sites More sharing options...
nao921 Posted March 1, 2010 Share Posted March 1, 2010 look under *Subreport properties*, there is a field named *Return Values* use that to link subreport variables to variables in main report, which supposedly would allow you to use return values from subreport in main report Link to comment Share on other sites More sharing options...
joepmo Posted March 1, 2010 Author Share Posted March 1, 2010 Yes, I know about the return values, but those can only really be used if you encase them in a text box or field on the main report. I believe this a still an open issue to allow you to use the results from a subreport variable in calculating a main report variable.I was trying to get some confirmation that this was still an open tracker issue and that it had not yet been resolved in one of the recent releases.Joe Link to comment Share on other sites More sharing options...
georve Posted March 3, 2010 Share Posted March 3, 2010 you can use this return to make calculus. you must to asign the value of return to a any variable in the master report and use it to make your own calculus in master report. i maded it taking values form subreport. i put it in detain band and take teh return values to make average in master report. there are a issue that i`m trying to solve is that average doesn`t take the las value from detail band and my avegare is worng.. but it is making calculus witn values returned.. Link to comment Share on other sites More sharing options...
joepmo Posted March 3, 2010 Author Share Posted March 3, 2010 I do not believe this is correct or the behavior is erratic. Again I am trying to confirm that using subreport variables to populate main report variables is stil NOT supported, correct? At least when I have tried this I get a "null" return. Link to comment Share on other sites More sharing options...
ministrymason Posted August 24, 2010 Share Posted August 24, 2010 Has this been solved?I have read numerous posts and it seems a lot of people are trying to acheive a master report variable calculation from a subreport variable Link to comment Share on other sites More sharing options...
planetzone Posted August 25, 2010 Share Posted August 25, 2010 It is not resolved yet, but there is an issue about this:jasperforge.org/projects/jasperreports/tracker/view.php 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