|
Re: ScriptFunctionService extension and birt 2.5.1 [message #493491 is a reply to message #493122] |
Mon, 26 October 2009 14:12 |
|
Daniel,
Take a look at this thread:
http://www.birt-exchange.org/forum/eclipse-birt-newsgroup-mi rror/16784-extending-expression-builder-dialog.html
Jason
Daniel Zuberb wrote:
> Hi
> I have implemented a couple of reports with birt 2.3.x.
> In several reports I use a javascript function to calculate the value of
> a computed column. To share that javascript function, I put the .js file
> in a new plug-in project and registered it as a
> org.eclipse.birt.core.ScriptFunctionService extension.
> I deployed this new plugin in my report designer installation.
> On Eclipse Ganymede with birt 2.3.x the script contribution works nicely.
>
> After I upgraded to Galileo and birt 2.5.1 the script contribution does
> not work anymore. My plug-in is loaded (I can see it in the Eclipse
> installation details) and the extension is registred (with the debugger
> I saw that the extension is found and my .js file gets loaded. But when
> I try to execute a report, I get an exception:
>
> Caused by: org.mozilla.javascript.EcmaError: ReferenceError:
> "myJsFunction" is not defined.
>
> I have attached the full stack trace.
>
> Are there any changes in 2.5.x how I have to register script contributions?
>
> Thanks, Daniel
|
|
|
|
Powered by
FUDForum. Page generated in 0.02879 seconds