Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » react on pagebreak inside table via js
react on pagebreak inside table via js [message #735222] Tue, 11 October 2011 09:45 Go to next message
hage Mising name is currently offline hage Mising nameFriend
Messages: 67
Registered: September 2011
Member
Hi,

is it possible to react to a pagebreak inside a table from a javascript?
I have several dynamic filled tables, i need to interact with my report, when one of them is larger than 1 page.

thx,

hage
Re: react on pagebreak inside table via js [message #735316 is a reply to message #735222] Tue, 11 October 2011 13:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You could use an onPageStart event or the onPageBreak event. Have a
look at this:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Jason

On 10/11/2011 5:45 AM, hage wrote:
> Hi,
>
> is it possible to react to a pagebreak inside a table from a javascript?
> I have several dynamic filled tables, i need to interact with my report,
> when one of them is larger than 1 page.
>
> thx,
>
> hage
Re: react on pagebreak inside table via js [message #923029 is a reply to message #735316] Tue, 25 September 2012 14:45 Go to previous messageGo to next message
hage Mising name is currently offline hage Mising nameFriend
Messages: 67
Registered: September 2011
Member
Hi,

i'm still into this one. The events jason mentioned before didn't help me at all. Problem is, a table gets populated, by oda driver, with lets say 100 entries. PageBreakIntervall on table is set to default, 40. The table starts in the middle of page, so there is content before that. So the 40 rows did not suit on one page, so next page is used. That is exactly the point, which disturbes me. If i decrement the PageBreakIntervall to that number, which suites on the page which has content before the table, everything works fine, but that leads to many whitespace on the following pages. Obviously the engine does not recognize, the beginning of a new page here. Context of this is, i'm still trying to generate a TOC the latex way which should appear after the titlepage, before the data content. Passing the report 3 times in a row to the engine via RunAndRenderTask, triggering a static java class within the oda driver, from the onRender-Scripts of the elements that should be part of my TOC. First iteration gathers all entries, second iteration inserts entries into TOC-Table, third iteration adds the pageNumbers to that toc, considering number of pages of the TOC. Same way i generate a List of Figures / Tables at the end of the report. This works well, because it's placed at the end. As written before, a adjusted pagebreakintervall for all of my tables (there are a few of them) seems to be a workaround, but that will break, if a user inserts a very long string into one of the cells, which leads to a very high row, which will break that pagebreakintervall-thing described before. Also this is a waste of space and (main point to most of the users) does not look very "smart". Is there any idea or way out of this mess?

(if there is no "easy" way out of this, is it possible to get somehow professional (paid) support on this one? we really need this fixed.)

any help very much appreciated
thx in advance
hage
Re: react on pagebreak inside table via js [message #923332 is a reply to message #923029] Tue, 25 September 2012 20:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Hage,

If you are using BIRT 3.7 or > can you try putting in a pagebreak interval of 0?

Jason
Re: react on pagebreak inside table via js [message #924117 is a reply to message #923332] Wed, 26 September 2012 14:22 Go to previous messageGo to next message
hage Mising name is currently offline hage Mising nameFriend
Messages: 67
Registered: September 2011
Member
tried PageBreakIntervall of 0, did not solve my problems
Re: react on pagebreak inside table via js [message #924415 is a reply to message #924117] Wed, 26 September 2012 20:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you reproduce the issue with the sample data and a sample report?

Jason
Re: react on pagebreak inside table via js [message #929490 is a reply to message #924415] Mon, 01 October 2012 13:54 Go to previous message
hage Mising name is currently offline hage Mising nameFriend
Messages: 67
Registered: September 2011
Member
not successfully yet, since we use a custom oda driver and i was not able to reproduce the issue with the sample database, but i'll try again later on
Previous Topic:[SOLVED] How to specify the properties folder to report
Next Topic:Scripting access to plugins
Goto Forum:
  


Current Time: Sun Nov 23 08:47:06 GMT 2014

Powered by FUDForum. Page generated in 0.03453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software