getting rid of pagebreaks in script [message #1162914] |
Wed, 30 October 2013 14:09  |
Eclipse User |
|
|
|
Hello,
I'm wondering if there is a way to get rid of pagebreaks in script. I'm trying to do this in the beforeRender handler of the report. I can get elements by name and by ID:
var elmByName = reportContext.getDesignHandle().getElementByName("Joe");
var elmById = reportContext.getDesignHandle().getElementByID("123");
Now that I have these elements, I want to iterate through their children looking for pagebreak. Something like:
for (var i = 0; i < elmByName.children.length; i++)
{
if (elmByName.children[i].tagName == "pagebreak")
{
deleteElement(elmByName.children[i]);
}
}
But there doesn't seem to be such a function or field or property as "children" in the element. How does one iterate through an element's children?
BTW, I've tried to suppress pagebreaks through the usual methods to no avail. I have two threads going:
http://www.birt-exchange.org/forum/index.php?/topic/30545-cant-get-rid-of-page-break/
http://www.eclipse.org/forums/index.php/m/1162674/#msg_1162674
...but no one has answered.
|
|
|
|
Powered by
FUDForum. Page generated in 0.06449 seconds