dasarishivasagar Posted August 10, 2015 Posted August 10, 2015 Hello, I am passing calculated variables from SubReport to MainReporti am getting result in MainReport but my issue isI am not getting exact value in my MainReport as like what my subreport calculated variable value is giving. it is giving -1th iterated value to main report.for example:i am calculating sum($F{Sal}) which need to sum 8 records of $F{Sal} in my subreport and i need to pass it to mainreportin my subreport that variable value i am getting sum($F{Sal}) for 8 iterations which is correct and expectedsame variable i passed to my mainReportbut in my MainReport it's value printing sum($F{Sal}) for 7 iterations which is wrong, it is skipping 1 iteration i am not getting why it is happeningPlease help me on this issue as soon as possible.Thanks in advance,Regards,Shiva.
peter.w Posted August 10, 2015 Posted August 10, 2015 Hi ShivaIf you do get a solution to this please post it. Pretty please with cheese and sprinkles on top! http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/regular_smile.gifI have ended up making stored procedures in the DB to get some of it to work the way I need.See here: http://community.jaspersoft.com/questions/847310/row-totals-sub-report-variableIn one case I have a second detail band that calls a sub-report to add two numbers togther and return the answer.But if you find a better way to do this without a whole sub-report I would love to know.regardsPeter
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