Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Page Numbering when using RunAndRender in 3.7.1(Need to get custom page number when running the RunAndRender option in Birt 3.7.1)
Page Numbering when using RunAndRender in 3.7.1 [message #760020] Thu, 01 December 2011 00:05 Go to next message
David Johns is currently offline David Johns
Messages: 15
Registered: July 2009
Junior Member
I am trying to come up with a way (for several reports) to generate custom page numbering (just need starting page number not total pages) for a group. I have a limitation that it must work with the RunAndRender task as I am providing the reports for an application, and that application only uses the RunAndRender task.

I have been playing with the sample reports that show using the page variables and an older version that uses the group page numbering. I have been attempting different things to get the page numbers to work correctly, however, I am not able to get an accurate page number or do a calculation on the pageNumber variable when the group spans multiple pages.

My question is, is there any way to generate a page number that starts at the beginning of the group and increments until the next group? I will have to implement this on several reports, so a standard approach would be great. Also, I do NOT have access to where this is being called and run from, so I can not programmatically change anything, it must be done via the designer.

Thanks for your help!

David
Re: Page Numbering when using RunAndRender in 3.7.1 [message #760202 is a reply to message #760020] Thu, 01 December 2011 15:34 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The problem is that master page content is created and render before the
content for the report when using a runandrender task, if you have have
no way of doing a look ahead. You could probably increment a counter in
the group header to do something similar.

Jason

On 11/30/2011 7:05 PM, David Johns wrote:
> I am trying to come up with a way (for several reports) to generate
> custom page numbering (just need starting page number not total pages)
> for a group. I have a limitation that it must work with the RunAndRender
> task as I am providing the reports for an application, and that
> application only uses the RunAndRender task.
>
> I have been playing with the sample reports that show using the page
> variables and an older version that uses the group page numbering. I
> have been attempting different things to get the page numbers to work
> correctly, however, I am not able to get an accurate page number or do a
> calculation on the pageNumber variable when the group spans multiple pages.
>
> My question is, is there any way to generate a page number that starts
> at the beginning of the group and increments until the next group? I
> will have to implement this on several reports, so a standard approach
> would be great. Also, I do NOT have access to where this is being called
> and run from, so I can not programmatically change anything, it must be
> done via the designer.
>
> Thanks for your help!
>
> David
Re: Page Numbering when using RunAndRender in 3.7.1 [message #760227 is a reply to message #760202] Thu, 01 December 2011 16:11 Go to previous messageGo to next message
David Johns is currently offline David Johns
Messages: 15
Registered: July 2009
Junior Member
Thanks for the reply.

I was working on setting up something in the group header, but once I am inside the group and that group spans a page, I don't know how to increment the counter. Is there something that tells me I have spanned a page inside the group so I can update the counter appropriately? That is where I am stuck.

Any help on this is appreciated.

Quote:

The problem is that master page content is created and render before the
content for the report when using a runandrender task, if you have have
no way of doing a look ahead. You could probably increment a counter in
the group header to do something similar.

Jason
Re: Page Numbering when using RunAndRender in 3.7.1 [message #760260 is a reply to message #760227] Thu, 01 December 2011 17:23 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Select the group in the outline view and then click on the script tab.
You will see a page break event that should work.

Jason

On 12/1/2011 11:11 AM, David Johns wrote:
> Thanks for the reply.
> I was working on setting up something in the group header, but once I am
> inside the group and that group spans a page, I don't know how to
> increment the counter. Is there something that tells me I have spanned a
> page inside the group so I can update the counter appropriately? That is
> where I am stuck.
>
> Any help on this is appreciated.
>
> Quote:
>> The problem is that master page content is created and render before
>> the content for the report when using a runandrender task, if you have
>> have no way of doing a look ahead. You could probably increment a
>> counter in the group header to do something similar.
>>
>> Jason
>
Previous Topic:Reg:DataEngine_xxxxxx_xxx
Next Topic:Wrap test for excel
Goto Forum:
  


Current Time: Tue Sep 16 07:44:52 GMT 2014

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

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