Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 11:01 Go to next message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
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 13:17 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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


Jason Weathersby

BIRT Exchange
Re: (no subject) [message #683768 is a reply to message #683426] Tue, 14 June 2011 07:55 Go to previous message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
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: Sun Apr 20 04:23:51 EDT 2014

Powered by FUDForum. Page generated in 0.01544 seconds