Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Pass parameter to BIRT from java(BIRT ignoring setParameterValue)
icon10.gif  Pass parameter to BIRT from java [message #1723252] Fri, 12 February 2016 18:11
David Wood is currently offline David WoodFriend
Messages: 1
Registered: February 2016
Junior Member
I am fairly new to java and BIRT (definately novice). I have a java EE web application using Struts2. I have a BIRT report that runs in eclipse, accepts a
parameter value and shows the report in the BIRT viewer correctly.

I copied BirtEngine and RunBirt (attached) from some code I found in the web, it works and will display a simple report in HTML.

I need to pass a parameter call eventNbr and give it an integer value, I used the following line of code but I get an empty report:

task.setParameterValue("eventNbr", 36);

I really need some "idiot instructions" on how to do this correctly and make it work.

Also, I would like to open the report in the BIRT Viewer in a new window and not sure how to do that either.

Thanks
Previous Topic:exception occur while generate the report
Next Topic:Birt Runtime library, Maven repository: org.eclipse.birt.runtime 4.5
Goto Forum:
  


Current Time: Fri Apr 26 11:28:35 GMT 2024

Powered by FUDForum. Page generated in 0.02534 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top