Hello,<br />
<br />
I'm working with BIRT 2.5.1 integrating it into web-application. The current state is to learn more about BIRT and using it. Right now the most problematic situation is to find out a convenient way of setting Java object (or collection of them) into the report.<br />
<br />
I read lots of materials about POJO. And I know about this way <a class='bbc_url' href='
http://www.vogella.de/articles/EclipseBIRT/article.html#java)'>Reporting with Eclipse BIRT and Java Objects (POJO's) - Tutorial</a>. It seems too difficult for me to use, because I have to keep my java items for the report in static way.<br />
<br />
<br />
<br />
Imagine, that at some point I have generated Java object. How can I pass it into the report object without saving my data statically?<br />
<br />
Because the only way I see (using POJO example) is to put Java object into some static map by unique key that I pass into the report as parameter. Then I can get this static map on initialization (with ScriptedDataSource and POJO example) and get the item by key.<br />
<br />
It would be great to find out the way of setting this Java item when I get IReportRunnable or any of it tasks. For example, putting this item into reportContext and working with it as in linked example above is a good solution (or not? why?). I really don't understand the point of setting data from Java objects as it is propagated in all BIRT wikis and FAQs. Maybe it is easier somehow? Any experience?<br />
<br />
<br />
<br />
P.S.<br />
<br />
Java handlers are almost the same for the situation described by me. Because I can't set the exact instance of java handler into the report. I just say instance of what class report should create.<br />
<br />
So I should be able to get any generated data for the exact report inside my class (or handler class) by some unique key. This restriction is very annoying. Especially when I see a better way at analysis point.