Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Override event handler from external javascript file
Override event handler from external javascript file [message #1021179] Tue, 19 March 2013 16:03 Go to next message
birt user is currently offline birt user
Messages: 26
Registered: January 2013
Junior Member
I currently have a javascript handler for the beforeFactory event in my rptdesign file.

I would like to move my javascript code to an external shared javascript file. In my external javascript file, I know that I can declare a function and then call that function from the beforeFactory event in my report. However, I'm looking for a more automated approach which doesn't require manually adding a beforeFactory method for each report.

Can I write a javascript method in the external javascript file which automatically overrides the beforeFactory event for any report which includes my external javascript? If so, how? (A link to a tutorial or some general guidance would be fine). Thanks.
Re: Override event handler from external javascript file [message #1021241 is a reply to message #1021179] Tue, 19 March 2013 18:04 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1595
Registered: July 2009
Senior Member

Take a look at this example from the BIRT Exchange devShare. There are examples showing how to use java to write external event handlers for script methods.

BIRT Exchange DevShare - Scripting Event Handler Samples

Hope this helps.


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:crosstab get aggregate value in javascript
Next Topic:Trouble linking report parameters to data set parameters.
Goto Forum:
  


Current Time: Tue Sep 16 21:43:26 GMT 2014

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

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