Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Problem getting page break on group
Tubal
Hi there. I'm having trouble getting a report to page break on a group, and from what I can tell, I'm doing everything right.
My table is set up like the image below, with three groups. I'm trying to keep from breaking in the middle of group 2, but no matter what I choose, it always breaks in the same place, in the middle of the group.
Find more posts tagged with
Comments
mwilliams
Where is the break typically happening? In the details? Any way you can recreate your issue with the sample database so I can test it?
Tubal
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="85659" data-time="1322060707" data-date="23 November 2011 - 08:05 AM"><p>
Where is the break typically happening? In the details? Any way you can recreate your issue with the sample database so I can test it?<br /></p></blockquote>
<br />
On all the samples I've run, it happens at any point inside the group. In both the detail and the footer. It's like it's not paying attention to the page break settings of group 2. (I've also tried setting group 3 to avoid breaking inside, and it makes no difference to group 2, but the page break settings appear to work on group 3, i.e. it will break after the group 3 footer if it's set to avoid).<br />
<br />
If you can give me a tip on how to create a text based datasource and attach it to the report, I can set up a sample report. The data is coming from an SQL query right now.<br />
<br />
I've attached a pdf of what the rendered report looks like, with the page break inside the group.<br />
<br />
Thanks,<br />
<br />
Phil
mwilliams
You could try using a grid, rather than multiple group footer rows to get the necessary layout, for your group2 footer. Maybe it's having an issue with that. Not sure why it would, but who knows. If that doesn't work, if you could create a sample that I can run, that might help, since I can test on it.
Tubal
I replaced the 3 group 2 footer rows with a grid and it didn't solve the problem.<br />
<br />
I solved it by manually entering the pageBreakInside property in the xml source. For some reason, it wasn't updating itself when I selected the option in the group settings.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<group id="4371">
<property name="groupName">qtr</property>
<property name="interval">quarter</property>
<expression name="keyExpr" type="javascript">row["end_date"]</expression>
<structure name="toc">
<expression name="expressionValue" type="javascript">row["end_date"]</expression>
</structure>
<property name="repeatHeader">false</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">auto</property>
<property name="pageBreakInside">avoid</property>
<header>
......
</pre>
<br />
Thanks.
mwilliams
Hmm. Very weird. What is your BIRT version? If using the newest version, please log a bug for this!