Skip to main content



      Home
Home » Archived » BIRT » data in master page
data in master page [message #263010] Mon, 10 December 2007 12:26 Go to next message
Eclipse UserFriend
How can I use some data fields in the master page?

In the layout I've table with a group, I had to display some data which
is normally displayed in the group header in the masterpage.
I tried to pass the data in a javascript eventhandler to a javascript
variable and to display this variable in the master page - but it seems,
that the masterpage content will be calculated first (before the content
is generated).
Re: data in master page [message #263015 is a reply to message #263010] Mon, 10 December 2007 16:13 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

John,

The master page content is generated before the data in it is
generated(ie tables etc). You can drag a data element from the data set
to the header/footer in the master page, but this is discouraged as it
affects performance. If you are using two processes to run and render
your report (Like the /frameset mapping in the viewer servlet does) you
can set a persistent global variable in the table/data elements on
create event and then in the master page element use the onRender event
to retrieve this variable). This will not work when using one process
as the onrender events happen immediately after the oncreate events of a
element. If you use this method you will need to store a variable for
every page or use a Map. see the topic Reset PAGE NUMBER for an example.



Jason

John wrote:
> How can I use some data fields in the master page?
>
> In the layout I've table with a group, I had to display some data which
> is normally displayed in the group header in the masterpage.
> I tried to pass the data in a javascript eventhandler to a javascript
> variable and to display this variable in the master page - but it seems,
> that the masterpage content will be calculated first (before the content
> is generated).
Previous Topic:Autotext in GroupHeader
Next Topic:Show image depend on parameter
Goto Forum:
  


Current Time: Tue Jul 15 22:49:45 EDT 2025

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

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

Back to the top