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)
Dynamic Page Break
praposo
Hello,
In my report I want a dynamic page break, to be determined by a report parameter.
Thanks
Find more posts tagged with
Comments
JasonW
Here is an example to set the page break interval based on a parameter.
Jason
praposo
How can I execute this down on the table group level?
JasonW
I am not sure I understand. Do you want the page break after property to be set to true or false based on a parameter?
praposo
The example worked great, but I have groups in my report, and was wondering how to apply the same method to change the group page break.
JasonW
page breaks for groups are handled with the pageBreakAfter Property.
This can be changed by modifying the code you have in that report like:
mytable = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("mytable")
mytable.setProperty("pageBreakInterval",params["PageBreakInterval"].value);
//mytable.getGroups().get(0).setPageBreakAfter("always");
//mytable.getGroups().get(0).setPageBreakAfter("auto");
mytable.getGroups().get(0).setPageBreakAfter("avoid");
JasonW
typos:
should be
always
auto
avoid