Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Setting parameters via API
Setting parameters via API [message #284959] Thu, 24 January 2008 21:53 Go to next message
Eclipse UserFriend
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 #284965 is a reply to message #284959] Thu, 24 January 2008 23:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Phillip,

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);
IGetParameterDefinitionTask is used to get parameter info, primarily to
build user entry dialogs.

Jason


Phillip Mills wrote:
> 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 #284972 is a reply to message #284965] Fri, 25 January 2008 13:46 Go to previous message
Eclipse UserFriend
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 #300806 is a reply to message #284959] Thu, 24 January 2008 23:13 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Phillip,

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);
IGetParameterDefinitionTask is used to get parameter info, primarily to
build user entry dialogs.

Jason


Phillip Mills wrote:
> 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 #300814 is a reply to message #284965] Fri, 25 January 2008 13:46 Go to previous message
Eclipse UserFriend
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 #301153 is a reply to message #284959] Thu, 24 January 2008 23:13 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Phillip,

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);
IGetParameterDefinitionTask is used to get parameter info, primarily to
build user entry dialogs.

Jason


Phillip Mills wrote:
> 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 #301161 is a reply to message #284965] Fri, 25 January 2008 13:46 Go to previous message
Eclipse UserFriend
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 #332386 is a reply to message #300806] Fri, 25 January 2008 13:46 Go to previous message
Eclipse UserFriend
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.)
Previous Topic:Setting parameters via API
Next Topic:Setting parameters via API
Goto Forum:
  


Current Time: Tue Apr 16 17:05:50 GMT 2024

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

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

Back to the top