Home
Analytics
Bind list to "Java Object" typed element of report
chrisdutz
Hi,
I am currently working on a Report. The DataSet for this report contains an output column of type "Java Object". In reality this contains a Java Collection of Objects. Now I want to add a List to my report outputting the items of that list. How can I do this? When I try to configure the Binding of the List I can't find an option that allows me to bind to an output column of the surrounding report.
All links dealing with Birt and POJO Datasources lead me back to the ONE tutorial about Reports using POJOs ... so please don't guide me to that ;-). Unfortunately the model in that tutorial is flat so the aspects that interest me most, are not dealt with in it.
Chris
Find more posts tagged with
Comments
chrisdutz
Geee ... 0 Views ... that's what I call activity ;-)
Well I have found a path that might be the solution, but I don't know if it's the best way to go:
I created a "Scripted Data Source" and a matching "Scripted Data Set". For this data set I defined my columns and a parameter "parent" of type "Java Object". In my inline-table I now reference my new data set and added a "Data Set Parameter Binfing" to assign the value of my Java Object column to the "parent" parameter of the scripted data source. Seems that this would be working. Unfortunately I still have to sort out some issues ... have to admit ... debugging Birt Reports Java Script code reminds me of debugging Visual Basic of Office 97 ;-)