Skip to main content



      Home
Home » Archived » BIRT » How to use EMF as a datsource
How to use EMF as a datsource [message #77013] Mon, 26 September 2005 11:06 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

I am trying to replace my Derby database with EMF however I still need
to provide reporting capabilities. How do I specify connection to an
EMF object as a datasource in order to run BIRT reports against it?
Re: How to use EMF as a datsource [message #77030 is a reply to message #77013] Mon, 26 September 2005 11:27 Go to previous message
Eclipse UserFriend
Brian,
You probably use a Scripted Datasource. Look at the faq for examples. In
this case you would have to treat EMF as a standard Java Object. Look at
http://www.eclipse.org/birt/wiki/index.php?n=FAQ.DataAccess
specifically Scripted Data sources.

If you have BIRT embedded in your application and you are using the engine
api to run your reports you can add an instance of your EMF object to
scripting engine like.

EngineConfig config = new EngineConfig( );
config.setEngineHome( "c:\\eclipse3.1\\eclipse" );
config.addScriptableJavaObject("EMFObject", EMFInstance);

Then in the report make script calls against this instance. For example on
a data control
in the expression builder you could put something like
emfObj = EMFObject;

emfObj.getMyValue();


Jason Weathersby
BIRT PMC


"Brian Berry" <bdberry@us.ibm.com> wrote in message
news:dh92ph$6eh$1@news.eclipse.org...
>I am trying to replace my Derby database with EMF however I still need to
>provide reporting capabilities. How do I specify connection to an EMF
>object as a datasource in order to run BIRT reports against it?
Previous Topic:ExpressionProvider
Next Topic:Error With Pie Chart
Goto Forum:
  


Current Time: Sun Jul 13 18:31:50 EDT 2025

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

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

Back to the top