BIRT Exchange Forum: subtotals per page while displaying only groups - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

subtotals per page while displaying only groups Rate Topic: -----

#1 User is offline   raffi Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 09-July 12


Posted 14 July 2012 - 06:18 AM

Hello all, here's my problem:
I wanted to add totals per page like in this example :
http://www.birt-exch...otals-per-page/

the problem is I'm not displaying the detail row in my report , because I'm only displaying aggregation data ( I'm using a group header to do that ).

my report looks like this:

header :
group 1 - header : (this group should be able to do page break when group 2 reach 10 rows)
group 2 - header : ( I'm using this group to display aggregates)
group 1 - footer: ( in this row I should display the total per page)
footer : displaying totals here.

So, I can't make group1 group on row.__rownum variable , I want to use another varibale instead which increments when the group 2 creates a row.

I tried to do it with scripting but didnt work. ( I used a variable initialized in "initialize" , set to "0" in "OnPageEnd" , and increments in "OnCreate" of group 2 , and made group 1 group on it )

I can explain more if needed , thank you !
0

#2 User is offline   raffi Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 09-July 12


Posted 17 July 2012 - 11:31 AM

Edit: I could make group 1 group on a variable that increments when group 2 creates a row , but now group 1 only shows it's footer in the last page and not in every page , why in the example shown before the page break happens after the footer creation and now it appears to happen before it not allowing it to show?

thanks in advance for reply
0

#3 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 17 July 2012 - 11:52 AM

Can you create an example with the sample database that shows what you're doing, so I can see exactly what your setup is? Thanks!
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#4 User is offline   raffi Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 09-July 12


Posted 17 July 2012 - 12:44 PM

Thanks for reply williams :)
I attached a file to this post , I want to do something similar to this .
I want group 1 footer to show in every page not only last one. thanks !

Attached File(s)


0

#5 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 18 July 2012 - 10:49 AM

Take a look at this. I ordered the dataSet by the group and created a count for the groups in a computed column that I used in the outer group to actually get a 10 line group. Then, I added an aggregation and used a variable to store the last page value in. I used all this to display last page's end value on every page and the cumulative total at the bottom. Hope this helps.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#6 User is offline   raffi Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 09-July 12


Posted 18 July 2012 - 12:20 PM

it works fine as I expected :) Thanks a lot , your help is appreciated !
0

#7 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 18 July 2012 - 12:50 PM

You're very welcome! Always glad to help! Let us know whenever you have questions! :)
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users