How to change parameter at runtim [message #49418] |
Wed, 22 June 2005 11:20  |
Eclipse User |
|
|
|
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 12:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03261 seconds