[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: How to access the underlying chart object in a report design

Stuart,

Here is an example of getting parameter details. You do not need to use this to set them though.

You can set them individually or as a map.
		//Create task to run and render the report,
		IRunAndRenderTask task = engine.createRunAndRenderTask(design); 		
		task.setParameterValue("Top Percentage", (new Integer(3)));;
		task.setParameterValue("Top Count", (new Integer(5)));

Jason

Stuart Roe wrote:
Jason,

Thanks for the pointer to the example. It really helped.

My code is now rendering a chart into a JPanel using the SQL from the design.

For the HTML emitter text reports I'll need to access and pass report parameters.

Are there any java examples or pointers you can refer me to:
a) getting the parameter list defined within the rtpdesign file.
b) setting the paramter values via java code.

Thanks,

Stuart.

Jason Weathersby wrote:
Stuart,

I am not sure what you mean. I thought you were rendering to html.
If you are using the Chart engine standalone look at the AutoDataBindingViewer example in the org.eclipse.birt.chart.examples plugin. You can check it out of CVS.


Jason