Jump to content
We've recently updated our Privacy Statement, available here ×

Missing detail in subreport


erer

Recommended Posts

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 - erer

ps. excuse my grammar :) I know it's not perfect :)

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

problem still exist.

 

This is the exception i get on JBoss

 

19:29:19,821 ERROR [JRThreadSubreportRunner] Fill 29776097: exception
java.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

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 subreport
200 - 5 // <----- this is detail in subreport
100 - 28
50 - 10
<here's page split>
20 - 10
10 - 15

when master's detail splitAllowed = false then:

<the ending of this page is blank>
<here's page split>
Nominals: // <----- this is columnHeader in subreport
20 - 10
10 - 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:06

Post edited by: erer, at: 2008/05/08 22:24

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...