Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Subtotal before page break
Subtotal before page break [message #765116] Tue, 13 December 2011 07:58 Go to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 197
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 12:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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
>


Jason Weathersby

BIRT Exchange
Re: Subtotal before page break [message #765705 is a reply to message #765258] Wed, 14 December 2011 09:53 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 197
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 12:43 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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


Jason Weathersby

BIRT Exchange
Previous Topic:WSDL datasource-birt report generation
Next Topic:setting resource folder for getReport.bat
Goto Forum:
  


Current Time: Wed Apr 16 00:56:47 EDT 2014

Powered by FUDForum. Page generated in 0.08372 seconds