Skip to main content



      Home
Home » Archived » BIRT » paramater setting via java code
paramater setting via java code [message #67414] Thu, 11 August 2005 14:36 Go to next message
Eclipse UserFriend
Hello,

So I want to set the values of my reports parameters with out popping a
ui. From what I understand I need to do something like

IGetParameterDefinitionTask task =
engine.createGetParameterDefinitionTask( report );
Collection params = task.getParameterDefns( true );

Then iterate the collection setting the values as I go?
Is this is fully supported at the moment?
Can I set the report data source via this mechanism?
Re: paramater setting via java code [message #67456 is a reply to message #67414] Thu, 11 August 2005 14:48 Go to previous message
Eclipse UserFriend
Mike,

That collection object stores the parameter definition only. To pass in
the parameter, you have to collect your parameter values, associate them
with the right parameter name, put these pairs into a map object, and then
pass it to the engine before runing the report.

There are some sample code in viewer's EngineFragment.java file.

Jun Zhai
Previous Topic:User interaction with chart
Next Topic:Generate a Chart Report depending on User selection on webpage
Goto Forum:
  


Current Time: Mon Apr 28 23:48:06 EDT 2025

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

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

Back to the top