Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Subtotal before page break
Subtotal before page break [message #765116] Tue, 13 December 2011 12:58 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
Hi, how can I display a subtotal before a page break? I have a large table that spans over more than one sheet of paper (PDF). We would like to show a subtotal at the bottom of every page and a total at the end of the table.

Thanks for any pointers
Peter
Re: Subtotal before page break [message #765258 is a reply to message #765116] Tue, 13 December 2011 17:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Peter,

I am not sure how you are running the reports, but if you are using two
task run task and then a render task (/frameset servlet mapping on
viewer) you should be able to do this with a page variable and some
script. Look at the attached example. The page variable is used in the
page header and totals the quantity field for each page.

Jason

On 12/13/2011 7:58 AM, Peter Kullmann wrote:
> Hi, how can I display a subtotal before a page break? I have a large
> table that spans over more than one sheet of paper (PDF). We would like
> to show a subtotal at the bottom of every page and a total at the end of
> the table.
>
> Thanks for any pointers
> Peter
>
Re: Subtotal before page break [message #765705 is a reply to message #765258] Wed, 14 December 2011 14:53 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
Thanks Jason,

I have a IRunAndRenderTask and assume that this is not going to work then (I tried your example in "View Report as PDF" where the totals are shown but are one page off). I probably will try to change to a 2 task rendering and will then be able to use this.

Best Regards
Peter
Re: Subtotal before page break [message #765803 is a reply to message #765705] Wed, 14 December 2011 17:43 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Peter,

Currently page variables and pagination manipulation are only supported
with two phase operation,

Jason

On 12/14/2011 9:53 AM, Peter Kullmann wrote:
> Thanks Jason,
> I have a IRunAndRenderTask and assume that this is not going to work
> then (I tried your example in "View Report as PDF" where the totals are
> shown but are one page off). I probably will try to change to a 2 task
> rendering and will then be able to use this.
>
> Best Regards
> Peter
Previous Topic:WSDL datasource-birt report generation
Next Topic:setting resource folder for getReport.bat
Goto Forum:
  


Current Time: Fri Mar 29 10:15:39 GMT 2024

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

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

Back to the top