• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

pass parameter to BIRT report through java/jsp

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to pass parameter to BIRT from java....

in the post https://coderanch.com/t/63059/Other-Open-Source-Projects/BIRT-report-parameter-from-Java, it was mentioned:

Assuming that BIRT is installed with Eclipse and functional try the following:

a) In your report design add a new Report Parameter ( RP_param )
b) In your data set Query create your query with something like "WHERE ID = ?" or some other criteria using a ? for the value.
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.

In the Java code do something like

IReportRunnable design;
IRunAndRenderTask task = null;

design = engine.openReportDesign(reportDesignFile);
task = engine.createRunAndRenderTask(design);

// {... other code... }

task.setParameterValue("RP_param", paramValue);
task.run();


I didnt understand where to write this code. I am using struts in my application. Do i write this in the action class of the jsp page
which forwards to the report? What is reportDesignFile? What is engine?

If there is some other way to pass parameters to the report through java/jsp application, tat also will do...

Can somebody help me ?

Thanks
Neeti
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m also facing the same problem
plssssss anyone can help
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, were you able to figure it out? Could you post a solution here pretty pretty please?

Thanks in advance,
dina
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!