|
|
|
|
|
|
|
Re: Birt POJO's as DataSource? [message #901126 is a reply to message #901122] |
Thu, 09 August 2012 21:28 |
|
If you are using the re api you can add any object to the engine by
using task.getAppContext().put("myobject", objectinstance);
Then in script get it like:
reportContext.getAppContext().get("myobject").callMyMethod();
Jason
On 8/9/2012 5:25 PM, zubin Mising name wrote:
> I am using report engine api, but also open for the other optinos
|
|
|
|
Re: Birt POJO's as DataSource? [message #901595 is a reply to message #901127] |
Mon, 13 August 2012 15:06 |
|
No but you could create a scripted data source in your report and in the
data set open get the object and in the fetch method iterate it.
Jason
On 8/9/2012 5:49 PM, zubin Mising name wrote:
> Thx for the quick reply, jason
>
> Does that mean i can use this as data set in script?
>
> for example:
>
> var table = elementFactory.newTableItem(null, 3);
> table.setProperty( "dataSet",
> reportContext.getAppContext().get("myobject") );
>
>
>
> thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.05083 seconds