Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to change parameter at runtim
How to change parameter at runtim [message #49418] Wed, 22 June 2005 15:20 Go to next message
Jingming Ma is currently offline Jingming MaFriend
Messages: 30
Registered: July 2009
Member
In my java code I tried to change the parameter default vaue like this:
ParameterHandle p =
(ParameterHandle)mReport.getDesignHandle().getDesignHandle() .findParameter( "pic");
p.setProperty("defaultValue", "Bluehills.jpg");
In the debuger I can see it chnages but the genereated html still uses old
value. How should I do it? I tried to change the valu but not the default
value, but I did not find a way to do it. Please help.
Thanks.
Jim
Re: How to change parameter at runtim [message #51662 is a reply to message #49418] Mon, 27 June 2005 16:52 Go to previous message
Stanley Wang is currently offline Stanley WangFriend
Messages: 81
Registered: July 2009
Member
Hi, Jim,

I assume the following is what you want to do: you have a report with a
parameter. You want to run the report, but before running it, you want to
programatically set the parameter value.

If this is what you want to do, you should use the ENgine API in
org.eclipse.birt.report.engine.api package. The JavaDoc for the package
has examples at the bottom of the first page. In particular, the
IRunAndRenderTask interface may be a good starting point.

Stanley Wang
BIRT Engine
Previous Topic:report engine
Next Topic:Unable to insert image
Goto Forum:
  


Current Time: Sat Jul 27 12:47:14 GMT 2024

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

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

Back to the top