Javascript problem in 2.5.2 -> 4.5.0 upgrade [message #1736610] |
Thu, 30 June 2016 14:54 |
Steve Schafer Messages: 23 Registered: December 2009 |
Junior Member |
|
|
We have a plugin that extends org.eclipse.birt.core.ScriptFunctionService to provide a custom function. One of the arguments to this function is the row object, which is available in onCreate and many other places. In the function we check that row is an instance of ScriptableObject and then use the get method to access fields. This all works fine in BIRT 2.5.2.
In 4.5.0, however, it never gets into the function because the javascript engine throws "TypeError: Cannot find default value for object". The function call in javascript looks like this:
BlackboardFunctions.GetLearningStandardURL(reportContext, row, 1)
I've verified that it is the row object that is causing the error. If I pass null instead of row, it gets into the function.
I've read that "Cannot find default value for object" is thrown when getDefaultValue isn't defined for the object and that getDefaultValue is called when javascript is trying to convert the object to a string.
How can I get javascript to pass the row object to my function?
|
|
|
Powered by
FUDForum. Page generated in 0.02702 seconds