Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Birt report Parameters
giridhar
Hi Friends,
My name is giridhar. i have a doubt.plz clarify me.
I wrote a java program which run the reports in birt.
I want to know that whether report contain parameters or not from java program.Is this possible.
If so,please tell me the how to do it.
Thanks
Giridhar
Find more posts tagged with
Comments
bricombs
Good Day
You can do this. I would suggest that you get a copy of "Integrating and Extending BIRT" (ISBN-10: 0321772822)as there is a chapter on Programming Using the BIRT Reporting APIs and they cover how to access report parameters.
Also take a look at the following:
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.birt.doc.isv/engine/api/org/eclipse/birt/report/engine/api/package-summary.html
From the above link:
A report engine supports running several types of task. Examples are GetParameterDefinitionTask, RunAndRenderReportTask, etc. To run and render a report, the following steps may be involved:
? The report design is opened by calling the ReportEngine.openReportDesign(...) The method returns an IReportRunnable object.
? With the IReportRunnable object, call ReportEngine.createGetParameterDefinitionTask(...) to obtain an IGetParameterDefinitionTask object, from which parameter definitions are retrieved. A UI page can be constructed based on the definitions to prompt end users for parameter values.
? An IRunReportTask object can be obtained by calling ReportEngine.createRunAndRenderReportTask(...). From the task, report parameters are set. Running options can also be set.
? The run() method on IRunAndRenderReportTask is called.
You can also take a look at the folowing DevShare to see if that may help you.
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1484-displaying-parameter-selections-in-report/