Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Where to put a function that is referenced in a master page?
Where to put a function that is referenced in a master page? [message #683346] Mon, 13 June 2011 15:01 Go to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
Hopefully a simple one here.

I have a helper function that is used in the computation of a data element in a grid that is contained in the header of a master page. The master page itself is defined in a rpt library which my report pages link to.
So far the only place I seem to be able to put the function definition that the header can see is in the initialize exit for the actual report definition. This sort of defeats the purpose of the master page in that I would have to copy this function to every page that uses this master page in order for the master page to work.

Where in the rpt library and/or master page can I put this function so that it will be visible?

Thanks,
Mike
(no subject) [message #683426 is a reply to message #683346] Mon, 13 June 2011 17:17 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Mike,

Does it not work if you put the function in the onPrepare of the grid?

Jason

On 6/13/2011 11:01 AM, Mike Wulkan wrote:
> Hopefully a simple one here.
>
> I have a helper function that is used in the computation of a data
> element in a grid that is contained in the header of a master page. The
> master page itself is defined in a rpt library which my report pages
> link to.
> So far the only place I seem to be able to put the function definition
> that the header can see is in the initialize exit for the actual report
> definition. This sort of defeats the purpose of the master page in that
> I would have to copy this function to every page that uses this master
> page in order for the master page to work.
>
> Where in the rpt library and/or master page can I put this function so
> that it will be visible?
>
> Thanks,
> Mike
Re: (no subject) [message #683768 is a reply to message #683426] Tue, 14 June 2011 11:55 Go to previous message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
I will give this a try, but in the meantime I solved the problem by including the function directly in the data element. This works for this case because this is so far the only place that I needed to reference the function; moving it to the grid would be better.
Previous Topic:Newbie: Add new Element to report
Next Topic:Toggle table visibility
Goto Forum:
  


Current Time: Thu Apr 25 10:01:21 GMT 2024

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

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

Back to the top