Home
Analytics
Scripted Data Set - Java Objects
kosta
Hello BIRT community,
I am using the BIRT API and scripted data set in a java application.
I have used java objest so far that are lists of Objects with Strings as getter Methods.
The Column of the scripted data set are also Strings. And that works well.
I saw that also a Java Object can be used in a column but when I am trying to pass the Object from the java application into the BIRT data set over a javascript in the onFetch-method the list in BIRT is empty.
Is that so becasue BIRT can't find the definition of the class?
Is there any simple example how I can pass a Object with list of Objects and denn invoke some getters of them into BIRT.
Because if I dont go this way I need to make 3 more String-Fields instead of using that object.
Thanks in advance.
Find more posts tagged with
Comments
JasonW
Kosta,
Have a look at this post:
http://birtworld.blogspot.com/2010/10/birt-java-object-data-type.html
Jason
kosta
Thank you for the link, Jason<br />
<br />
The implementation of the <strong class='bbc'>Serializable </strong>interface helped to solve the problem.<br />
<br />
Cheers,<br />
Kosta.
JasonW
Thanks for letting us know you got it resolved.
Jason