Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Access java Object in BIRT javascript
udeRox
Hi,<br />
I'm trying to create birt report using java object,When I trying to access that object using javascript that gives me an error like this,I'm trying to configure data source in the report,Could anyone give me the solution to this,<br />
<br />
My javascript code <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
myObj= new Packages.main.com.MyObj();
objList=myObj.getValues();
</pre>
error:<br />
<br />
A BIRT exception occurred.<br />
Plug-in Provider:Eclipse.org<br />
Plug-in Name:BIRT Data Adapter<br />
Plug-in ID:org.eclipse.birt.report.data.adapter<br />
Version:2.5.2.v20100208<br />
Error Code:exception.error<br />
Error Message:An exception occurred during processing. Please see the following message for details:<br />
A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackages.main.com.MyObj] is not a function, it is object. (#3)<br />
Script source: , line: 0, text:<br />
__bm_open(). See next exception for more information.<br />
Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackages.main.com.MyObj] is not a function, it is object. (#3)<br />
Script source: , line: 0, text:<br />
__bm_open()<br />
<br />
<br />
Thanxx,
Find more posts tagged with
Comments
JasonW
Can you try
importPackage(Packages.main.com);
myObj = new MyObj();
Jason