lefrancky Posted February 9, 2007 Share Posted February 9, 2007 Hello, I'm in a similar case like this one. But indead of having two variables (X1, Y1), I have just one variable (TOTAL) declared with calculation="System" and initial value new Long(0l). All my subreport give me a returnValue in $V{TOTAL}with calculation="Sum". (Pseudo code like previous one! :whistle: )for each row in MainReport's Detail{ $V{TOTAL} += subreport1(...); $V{TOTAL} += subreport2(...); [...] $V{TOTAL} += subreportn(...);}In MainReport's Summarydisplay ($V{TOTAL}) Here an example : [file name=Sum_ReturnValues.zip size=4688]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Sum_ReturnValues.zip[/file] My problem is when I want to display $V{TOTAL}.It just give me the sum of returnValue from the last subreport.Something like thaht :$V{TOTAL} = Sum( subreportn(...)) ; Is it a bug or just a restriction of JasperReport ?? [NB : I'm using JasperReport & iReport 1.3.0]Post edited by: lefrancky, at: 2007/02/09 09:33 Link to comment Share on other sites More sharing options...
lucianc Posted February 13, 2007 Share Posted February 13, 2007 This can be considered a bug since one would expect this to work. Please log the bug here. Regards,Lucian Link to comment Share on other sites More sharing options...
lefrancky Posted February 14, 2007 Author Share Posted February 14, 2007 Done ! :cheer: It's the artifact artf2055 Thanks, Link to comment Share on other sites More sharing options...
luisbarrosv Posted March 2, 2007 Share Posted March 2, 2007 Please Lucian, I have the same problem.How can I test the fix posted?I had access link http://scm.jasperforge.org/svn/repos/jasperreports/trunk/jasperreports but I didn't find ThanksLuis Link to comment Share on other sites More sharing options...
lucianc Posted March 2, 2007 Share Posted March 2, 2007 The URL is a Subversion repository. You will need a to get a SVN client (from here for instance), use it to checkout the JasperReports sources from the URL, build the sources and then use the resulting jar. Regards,Lucian Link to comment Share on other sites More sharing options...
luisbarrosv Posted March 5, 2007 Share Posted March 5, 2007 okHow can i use this.I putsvn co http://scm.jasperforge.org/svn/repos/jasperreports/trunk/jasperreportsin my console. What I have to do now? :dry: :blink: ThanksLuis Link to comment Share on other sites More sharing options...
lucianc Posted March 6, 2007 Share Posted March 6, 2007 Now you have to make sure you have Apache Ant (the Ant bin folder should be on your path). Then, go to the jasperreports directory and do ant jar. Once the build completes, you will find the JasperReports jar (jasperreports-x.y.z-jar) under the dist folder. Get this jar and use it in your application. Regards,Lucian 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