midrag Posted November 7, 2006 Share Posted November 7, 2006 Hi, i am trying to pass the REPORT_COUNt variable from my subreport to my masterreport. Code:<returnValue subreportVariable="REPORT_COUNT" toVariable="Subreport_RecordCount"/> My Subreport_RecordCount Variable is set to calculation=systemCode:[code]<variable name="Subreport_RecordCount" class="java.lang.Integer" resetType="Report" calculation="System"> i use the variable in the detail field of the masterreport. my problem is, that the Subreport_RecordCount variable shows the Record count of the last Row, not of the (desired) acutal row (first row is shown as null). Any ideas? best regards, midrag Link to comment Share on other sites More sharing options...
lucianc Posted November 7, 2006 Share Posted November 7, 2006 Set evaluation="Band" for the text field in which you display the returned value. HTH,Lucian Link to comment Share on other sites More sharing options...
midrag Posted November 8, 2006 Author Share Posted November 8, 2006 Hi Lucianc, thx for your reply. Setting evaluation to Band helped to show the variable correctly. But what if i want to chart with the variable? I have a Pie Chart in my Summary and want to Chart with the RECORD_COUNT Variable from my Subreport.Is there any way telling the Chart to evaluat the Variable at the right time? thx for your help!, midragPost edited by: midrag, at: 2006/11/08 07:50 Link to comment Share on other sites More sharing options...
lucianc Posted November 8, 2006 Share Posted November 8, 2006 This is a known limitation of JasperReports. Regards,Lucian Link to comment Share on other sites More sharing options...
midrag Posted November 8, 2006 Author Share Posted November 8, 2006 thx for your answer. Its a pity that there will be no fix :-( best regards, midrag 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