erer Posted May 6, 2008 Share Posted May 6, 2008 HI there. I've encountered a problem with detail band im my subreport. I made a report that has dynamic number of subreports. Subreport is placed in detail band, and as a source i give parameters, source and design for each rekord. I hope this is clear to understand.Now, I have weird problem. When I unselect splitAllowed on that detail band that contains subreport, then if subreport begins on new page there is no subreport's detail band. Simply it's not shown and even there is no space where it should be.Does anyone knows why this is happening. I can't give you jrxml beacuse I dont, have any. best regards - ererps. excuse my grammar :) I know it's not perfect :) Link to comment Share on other sites More sharing options...
erer Posted May 9, 2008 Author Share Posted May 9, 2008 problem still exist. This is the exception i get on JBoss 19:29:19,821 ERROR [JRThreadSubreportRunner] Fill 29776097: exceptionjava.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:189) at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:1994) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.addPage(JRHorizontalFiller.java:1257) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillPageBreak(JRHorizontalFiller.java:1330) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillGroupFooter(JRHorizontalFiller.java:784) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillGroupFooters(JRHorizontalFiller.java:748) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReportEnd(JRHorizontalFiller.java:295) at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReport(JRHorizontalFiller.java:124) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:891) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:814) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:523) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:63) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:209) at java.lang.Thread.run(Thread.java:619) Link to comment Share on other sites More sharing options...
erer Posted May 9, 2008 Author Share Posted May 9, 2008 to be more specific, the detail band in subreport that is forced to start on new page (because of splitAllowed = false) is missing only couple of instances.for examlpe I have subreport that prints nominals. when master's detail splitAllowed = true then:Nominals: // <----- this is columnHeader in subreport200 - 5 // <----- this is detail in subreport100 - 2850 - 10<here's page split>20 - 1010 - 15when master's detail splitAllowed = false then:<the ending of this page is blank><here's page split>Nominals: // <----- this is columnHeader in subreport20 - 1010 - 15 My guess is that filling proces when reaches end of page, forces subreport to be generated on next page from begining, but doesn't set the source of the subreport back to start and this indicates that source iterates further instead from begining. best regards - erer Post edited by: erer, at: 2008/05/08 18:06Post edited by: erer, at: 2008/05/08 22:24 Link to comment Share on other sites More sharing options...
lucianc Posted May 9, 2008 Share Posted May 9, 2008 What kind of data source are you using for the subreport? If you're not using a (sub)report query, you would need to use a data source that implements JRRewindableDataSource so that the engine would be able to rewind the subreport data. Regards,Lucian Link to comment Share on other sites More sharing options...
erer Posted May 9, 2008 Author Share Posted May 9, 2008 I am using JRTableModelDataSource :) 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