Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to override Page Autotext's initial value
How to override Page Autotext's initial value [message #900255] Mon, 06 August 2012 08:21 Go to next message
Jomar Romero is currently offline Jomar Romero
Messages: 4
Registered: July 2012
Junior Member
Hello,

I just wanted to ask if there is a way on how to override the initial value of Page autotext (currently 1) to let's say 10. The reason behind this is I sliced up my report with 10 pages each (10 .rptdesign files with 10 pages each) and concatenated them with itext library. (please note that I have placed a static text on the Max page part) The problem with that is the page numbering that I have in page footer displays 1/100...10/100...1/100 (because of concatenated report)... 10/100... 1/100 and so on... My idea was to assign a default value on the Page Autotext on each of the rptdesign files so that it won't get reset on each report.

any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900397 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900398 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900400 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900401 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900402 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900403 is a reply to message #900255] Mon, 06 August 2012 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Jomar,

If you are using the viewer or using separate run and render task with
the API you can do this with a simple page variable and script:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_4

Attached is an example that uses a page variable on the master page that
starts at 10. Look at the onPageEnd script and look at the master page
header.

Jason

On 8/6/2012 4:21 AM, Jomar Romero wrote:
> Hello,
>
> I just wanted to ask if there is a way on how to override the initial
> value of Page autotext (currently 1) to let's say 10. The reason behind
> this is I sliced up my report with 10 pages each (10 .rptdesign files
> with 10 pages each) and concatenated them with itext library. (please
> note that I have placed a static text on the Max page part) The problem
> with that is the page numbering that I have in page footer displays
> 1/100...10/100...1/100 (because of concatenated report)... 10/100...
> 1/100 and so on... My idea was to assign a default value on the Page
> Autotext on each of the rptdesign files so that it won't get reset on
> each report.
>
> any help would be appreciated.
Re: How to override Page Autotext's initial value [message #900423 is a reply to message #900403] Tue, 07 August 2012 02:56 Go to previous messageGo to next message
Jomar Romero is currently offline Jomar Romero
Messages: 4
Registered: July 2012
Junior Member
Thanks Jason! will take a look at this and report back.

Re: How to override Page Autotext's initial value [message #1124261 is a reply to message #900423] Thu, 03 October 2013 10:51 Go to previous messageGo to next message
Mihir Gajjar is currently offline Mihir Gajjar
Messages: 3
Registered: October 2013
Junior Member
Hello, We want to present a report in which the page number is suppose to be group specific. I mean, Page n of m where n is the page number of page in a group and m is the total number of page of that group. We are using BIRT 2.5.1 and all our reports are all generated in PDF.
Has anyone solved this ? Please guide.
Thank you for your help.
Re: How to override Page Autotext's initial value [message #1142683 is a reply to message #1124261] Thu, 17 October 2013 19:58 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

Take a look at this example from the BIRT Exchange devShare:

BIRT Exchange DevShare - Group Page Numbering


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: How to override Page Autotext's initial value [message #1152782 is a reply to message #1142683] Thu, 24 October 2013 07:03 Go to previous message
Mihir Gajjar is currently offline Mihir Gajjar
Messages: 3
Registered: October 2013
Junior Member
Thank you Williams, but as you know, this is not working for when we directly go for PDF preview, any advice how to do that ?
Previous Topic:Creating printable TOC in PDF
Next Topic:Set a XML DataSource Programmatically
Goto Forum:
  


Current Time: Thu Oct 23 01:45:37 GMT 2014

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

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