Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Using POJO's as a data source in a RCP application
cjmoats
I have an RCP application that I want to add some reporting feature to. I already have all the data I need in the form of POJO's on the client. So, I would like the report to use the POJOs as the data source. I'm pretty new to using BIRT, but from what I read I need to use a Scriptable Data Source. The problem I'm having is regarding the classloader. My classes are not recognized in the JavaScript. I see examples of using the viewer in an RCP application and examples of using POJO's with a Scriptable Data Source. But I don't see any examples of doing both of these.
Any help would be apprecaited. Thanks.
Find more posts tagged with
Comments
JasonW
You should be able to add jars to the web viewer plugin's web-inf/lib directory.
You can also add the user.projectclasspath properyt like
System.setProperty( "user.projectclasspath","c:/test/testdata.jar");
WebViewer.display(reportName , WebViewer.HTML, browser, "run");
Before calling the display method.
Jason