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)
Avoid page break in group: not working
mho
I have a table with a group on it. When the rows of a group do not fit completely on the current page, I want the group to begin on the top of the next page. So I set the page break of the group to "Inside: Avoid". But that does not work. In the attached Example the groups "Germany" and "USA" should begin on the top of the next page. How can I achieve this? Using BIRT 2.7.2., need the report result in PDF Format.
Find more posts tagged with
Comments
Tubal
I've had issues where the .rptdesign xml source doesn't actually save the 'avoid' property even though you set it in the report designer. A quick scan of your xml code shows that this property isn't set in the 'COUNTRY' group. The solution was to manually edit the xml code to include this property. This was on 3.7.1, I'm not sure if the issue was present in 2.7.2 as well.<br />
<br />
You'd want to edit your xml source code that pertains to that group and add this property, something like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><group id="137">
<property name="groupName">NewTableGroup1</property>
<expression name="keyExpr" type="javascript">row["COUNTRY"]</expression>
<structure name="toc">
<expression name="expressionValue" type="javascript">row["COUNTRY"]</expression>
</structure>
<property name="hideDetail">false</property>
<property name="pageBreakInside">avoid</property> <!--this is what I added -->
<header>
<row id="138">
<cell id="139">
<data id="144">
<property name="resultSetColumn">COUNTRY</property>
</data>
</cell>
<cell id="140"/>
</row>
</header>
<footer>
<row id="141">
<cell id="142"/>
<cell id="143"/>
</row>
</footer>
</group>
......</pre>
<br />
Hope this helps.
mho
That helped! Thank you!