Skip to main content



      Home
Home » Archived » BIRT » Passing a variable from a subreport back to main report
Passing a variable from a subreport back to main report [message #64760] Thu, 04 August 2005 07:08 Go to next message
Eclipse UserFriend
Originally posted by: benn.tilby.tangozebra.com

I have a report table with a subreport , and I want to add together totals
in the subreport to display as a grand total in the outer report. I can do
this using Total.sum aggregate but it is very slow. I was wondering if there
was a way to declare a variable in the header of the outer table, add to it
several times in the inner table, and then display it in the footer of the
outer table. But so far I have not been able to reach the variable. I cant
either seem to find a way of passing it as a parameter or making it global.
Any ideas ...?

Thanks,
BT.
Re: Passing a variable from a subreport back to main report [message #64894 is a reply to message #64760] Thu, 04 August 2005 12:55 Go to previous message
Eclipse UserFriend
You might try using a thread local hashmap to store temp variables and
access the java object directly.

Joe


"Benn Tilby" <benn.tilby@tangozebra.com> wrote in message
news:dcssur$11n$1@news.eclipse.org...
>I have a report table with a subreport , and I want to add together totals
>in the subreport to display as a grand total in the outer report. I can do
>this using Total.sum aggregate but it is very slow. I was wondering if
>there was a way to declare a variable in the header of the outer table, add
>to it several times in the inner table, and then display it in the footer
>of the outer table. But so far I have not been able to reach the variable.
>I cant either seem to find a way of passing it as a parameter or making it
>global. Any ideas ...?
>
> Thanks,
> BT.
>
Previous Topic:Master Page Data Access
Next Topic:Print services
Goto Forum:
  


Current Time: Mon Apr 28 02:14:34 EDT 2025

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

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

Back to the top