| 
| Setting parameters via API [message #333953] | Thu, 24 January 2008 16:53  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: pmills.systemcore.ca 
 I'm missing something that I suspect must be obvious.  Using the report
 engine API, I have no problem running and rendering a report.  I also see
 calls to find out all kinds of information about report parameters through
 the IGetParameterDefinitionTask.  What I don't see is the mechanism for
 setting a parameter.
 
 Let's say I schedule a report to run every Sunday night to calculate the
 past week's activity.  In my scheduler code (Java), I know the start and
 end times, which I want to map to '?' parameters in my SQL.  What chain of
 events has to happen?
 |  |  |  | 
|  | 
| 
| Re: Setting parameters via API [message #346276 is a reply to message #340712] | Fri, 25 January 2008 08:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: pmills.systemcore.ca 
 Jason Weathersby wrote:
 
 > In the report engine api the run task and the runandrendertask have
 > methods that use task.setParameterValue(s)
 > either use task.setParameterValue(parmname, parmvalue)
 > task.setParameterValues(parmmap);
 
 Thanks!  I'll have a look in that direction.
 
 (A "BIRT Cookbook" would be wonderful.  There's a big contrast between the
 helpfulness of the report design tutorials and the bare API listings in the
 programming sections of Eclipse help books.)
 |  |  |  | 
| 
| Re: Setting parameters via API [message #346351 is a reply to message #340712] | Fri, 25 January 2008 08:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: pmills.systemcore.ca 
 Jason Weathersby wrote:
 
 > In the report engine api the run task and the runandrendertask have
 > methods that use task.setParameterValue(s)
 > either use task.setParameterValue(parmname, parmvalue)
 > task.setParameterValues(parmmap);
 
 Thanks!  I'll have a look in that direction.
 
 (A "BIRT Cookbook" would be wonderful.  There's a big contrast between the
 helpfulness of the report design tutorials and the bare API listings in the
 programming sections of Eclipse help books.)
 |  |  |  | 
| 
| Re: Setting parameters via API [message #350644 is a reply to message #340712] | Fri, 25 January 2008 08:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: pmills.systemcore.ca 
 Jason Weathersby wrote:
 
 > In the report engine api the run task and the runandrendertask have
 > methods that use task.setParameterValue(s)
 > either use task.setParameterValue(parmname, parmvalue)
 > task.setParameterValues(parmmap);
 
 Thanks!  I'll have a look in that direction.
 
 (A "BIRT Cookbook" would be wonderful.  There's a big contrast between the
 helpfulness of the report design tutorials and the bare API listings in the
 programming sections of Eclipse help books.)
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04830 seconds