Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to pass parameter to scripted data source
How to pass parameter to scripted data source [message #639130] Mon, 15 November 2010 11:59 Go to next message
vijay kumar is currently offline vijay kumar
Messages: 26
Registered: October 2010
Junior Member
HI i am working on one sample example on using scripted data source.I am able to run sucessfully .In next step want to pass parameters.After google i found that we we need to use params["myparameterName"]); But this is not giving any result when i preview the result.

So can any one help me on this regard.

Thank you in advance
Vijay Kumar Bolisetti
Re: How to pass parameter to scripted data source [message #639228 is a reply to message #639130] Mon, 15 November 2010 16:07 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Vijay,

How are you using the parameter in the scripted datasource. You can add
a dataset parmeter to a scripted datasource and link it to a report
parameter and then reference the parameter in script like:

inputParams["mydatasetparameter"].value

You should also be able to reference the report parmeter using

params["myparameterName"].value

Jason

On 11/15/2010 6:59 AM, vijay kumar wrote:
> HI i am working on one sample example on using scripted data source.I am
> able to run sucessfully .In next step want to pass parameters.After
> google i found that we we need to use params["myparameterName"]); But
> this is not giving any result when i preview the result.
>
> So can any one help me on this regard.
>
> Thank you in advance
> Vijay Kumar Bolisetti
Previous Topic:Report Designer perspective not available
Next Topic:How to create .rptdocument
Goto Forum:
  


Current Time: Sun Sep 21 16:15:22 GMT 2014

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

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