Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Using dynamic pojos to generate BIRT reports at runtime?
Migrateduser
<p>I have an RCP application where a user basically fills out a form and clicks a save button. When they click the save button I want to generate a birt report.</p>
<p> </p>
<p>How can I accomplish this?</p>
<p> </p>
<p>Right now I create a pojo model object that contains all of the form data that the user has entered as strings.</p>
<p> </p>
<p>I have a report designed using a table.</p>
<p> </p>
<p>Right now I am trying to use a ScriptedDataSetEventAdapter implementation to generate the data in the report by overriding the fetch method and assigning values using the pojo to each column of each row.</p>
<p> </p>
<p>But my problem is that I have no way of getting the pojo to my ScriptedDataSetEventAdapter implementation. </p>
<p> </p>
<p>I have another class that sets up the Report Engine, opens the report design, and runs the report. This class gets has the pojo, but I cannot figure out how to get the pojo to my ScriptedDataSetEventAdapter implementation since it seems like this class is instantiated and called from the report design.</p>
<p> </p>
<p>Is there an easier way to do what I'm trying to describe?</p>
Find more posts tagged with
Comments
There are no comments yet