Home
Analytics
How to pass and access java ArrayList in reports?
rohitmali
Hi,
I have following doubts:
I have a Arraylist in JAVA code.
1. How to pass this list to BIRT report from JAVA code?
2. How to access and display the same arraylist in BIRT report?
Thanks.
Find more posts tagged with
Comments
DSP
Even i am facing same problem. Please let me know if you find any solution.
DSP
dude i found the solution on this link...
http://www.vogella.de/articles/EclipseBIRT/article.html
check it out..
rohitmali
Thanks dude....
johnw
You have a couple of different options depending on what version of BIRT your using. If your integrating into your application, use the ApplicationContext to pass into the IRun and IRender tasks. It is just a hashmap, so any object can be passed.
If your using the BIRT Viewer, then you will need to use either some sort of IPC mechanism, or serialize the array and pass into a parameter. You used to be able to pass in any object, but that feature was phased out.
rohitmali
<blockquote class='ipsBlockquote' data-author="'johnw'" data-cid="95722" data-time="1328905681" data-date="10 February 2012 - 01:28 PM"><p>
You have a couple of different options depending on what version of BIRT your using. If your integrating into your application, use the ApplicationContext to pass into the IRun and IRender tasks. It is just a hashmap, so any object can be passed. <br />
<br />
If your using the BIRT Viewer, then you will need to use either some sort of IPC mechanism, or serialize the array and pass into a parameter. You used to be able to pass in any object, but that feature was phased out.<br /></p></blockquote>
<br />
<br />
Thanks.....