Hi all,<br />
I am trying to pass parameter to BIRT from java.... <br />
<br />
in the post <a class='bbc_url' href='
http://www.coderanch.com/t/63059/Other-Open-Source...IRT-report-parameter-from-Java'>BIRT report parameter from Java (Other Open Source Projects forum at JavaRanch)</a>, it was mentioned: <br />
<br />
Assuming that BIRT is installed with Eclipse and functional try the following: <br />
<br />
a) In your report design add a new Report Parameter ( RP_param ) <br />
b) In your data set Query create your query with something like "WHERE ID = ?" or some other criteria using a ? for the value. <br />
c) In your data set add a Parameter ( DS_param ) then set the default value of this parameter to the Report Parameter you created earlier (RP_param) to do this click on the default value field then the ... button. In the resulting dialog choose Category 'Report Parameters', sub category 'All' then double click your Report Parameter to add it and click OK. <br />
<br />
In the Java code do something like <br />
<br />
IReportRunnable design; <br />
IRunAndRenderTask task = null; <br />
<br />
design = engine.openReportDesign(reportDesignFile); <br />
task = engine.createRunAndRenderTask(design); <br />
<br />
// {... other code... } <br />
<br />
task.setParameterValue("RP_param", paramValue); <br />
task.run(); <br />
<br />
But I didnt understand where to write this code.Is there any other way to pass parameters to the report through java/jsp application?<br />
Do reply your suggession...<br />
<br />
Thanks,<br />
<br />
<br />
Vaishnavi