Skip to main content



      Home
Home » Archived » BIRT » POJO example
POJO example [message #78609] Mon, 03 October 2005 17:23 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

Is there a good working example of executing a BIRT report against a
java object? I have an object that is prepopulated and I need a way to
pass it as a parameter to the report API. Is this possible?
Re: POJO example [message #78626 is a reply to message #78609] Mon, 03 October 2005 17:43 Go to previous message
Eclipse UserFriend
This is possible. If you are using the engine API,
EngineConfig config = new EngineConfig();
config.addScriptableJavaObject("objectName", objectInstance);

Then in script you can access the object like
var test = myName.myMethod();

Currently this I believe is the only way to access a prepopulated object,
unless you do something like persist the object and reconstruct it.

Jason Weathesby
BIRT PMC



"Brian Berry" <bdberry@us.ibm.com> wrote in message
news:dhs7gg$ol7$2@news.eclipse.org...
> Is there a good working example of executing a BIRT report against a java
> object? I have an object that is prepopulated and I need a way to pass it
> as a parameter to the report API. Is this possible?
Previous Topic:For review: Birt 2.0 feature - Data Set Output Parameters
Next Topic:Does BIRT suppose drill down reports ?
Goto Forum:
  


Current Time: Sat May 10 05:07:38 EDT 2025

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

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

Back to the top