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 04: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 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900398 is a reply to message #900255] Mon, 06 August 2012 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900400 is a reply to message #900255] Mon, 06 August 2012 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900401 is a reply to message #900255] Mon, 06 August 2012 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900402 is a reply to message #900255] Mon, 06 August 2012 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900403 is a reply to message #900255] Mon, 06 August 2012 16: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.


Jason Weathersby

BIRT Exchange
Re: How to override Page Autotext's initial value [message #900423 is a reply to message #900403] Mon, 06 August 2012 22:56 Go to previous 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.

Previous Topic:Grid as Table in PowerPoint
Next Topic:Analysis services
Goto Forum:
  


Current Time: Mon May 20 09:38:21 EDT 2013

Powered by FUDForum. Page generated in 0.08879 seconds