Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Different header on the first page of report
Different header on the first page of report [message #1016150] Tue, 05 March 2013 09:20 Go to next message
Erika Rudíková is currently offline Erika RudíkováFriend
Messages: 2
Registered: March 2013
Junior Member
I need to have one header on the first page and another header on the next pages of report.
I am using 3.7.1 version.

1. I inserted a grid with two rows to the master page header.
2. I put one new grid into each of the rows.
First nested grid for the first page header, second nested grid for the next
pages header.
3. I set an onRender scripts:

//first nested grid
if( pageNumber > 1 ){
this.getStyle().display = "none";
}


//second nested grid
if( pageNumber == 1 ){
this.getStyle().display = "none";
}else{
this.getStyle().display = "block";
}


This works ok with the sample database, from JDBC Data Source.
But I need XML Data Source and with that it does not work at all.
It seems as if with the sample database table, the onRender event gets called on every page, but with my XML Data Source it only gets called once.

Please, If you could help me solve this mysterious problem I would appreciated it very much.

erisa
Re: Different header on the first page of report [message #1016588 is a reply to message #1016150] Thu, 07 March 2013 01:46 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I think I responded to your question, on StackOverflow. There shouldn't be an issue with this and I wasn't able to recreate it. Can you attach a report design and XML file that will show me this issue? Also let me know the output format. Thanks.

Michael

Developer Evangelist, Silanis
Re: Different header on the first page of report [message #1017206 is a reply to message #1016588] Mon, 11 March 2013 06:45 Go to previous messageGo to next message
Erika Rudíková is currently offline Erika RudíkováFriend
Messages: 2
Registered: March 2013
Junior Member
Thank you for answering.
In your sample you are using BIRT version 4.2.1. I am using 3.7.1 and I am stucked to it.
Could it be a bug in 3.7.1 version?

The output format is PDF.
  • Attachment: myreport.zip
    (Size: 137.41KB, Downloaded 323 times)
Re: Different header on the first page of report [message #1017320 is a reply to message #1016150] Mon, 11 March 2013 15:13 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You need to set your page layout to "fixed", by selecting a blank spot in the report layout, going to the general section of the property editor, and changing it from auto layout to fixed layout. Then, change all of your tables to have a page break interval of 0 by selecting each table and changing the value in the property editor. Then, when you run to PDF, using frameset, your masterpage headers will behave properly. Hope this helps.

Michael

Developer Evangelist, Silanis
Previous Topic:3 data columns, one cell and IF statements?
Next Topic:SWF Adverts
Goto Forum:
  


Current Time: Sat Oct 12 16:07:51 GMT 2024

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

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

Back to the top