|
Re: Fetching report parameter value [message #544087 is a reply to message #544080] |
Thu, 01 July 2010 14:38 |
|
There's not going to be a simple way. The value you want isn't a direct attribute of the parameter, it's part of the report design. There's probably an API call that will fetch it - someone more experienced in that area can address this.
|
|
|
Re: Fetching report parameter value [message #544113 is a reply to message #544080] |
Thu, 01 July 2010 15:28 |
|
Is this a dataset parmeter or a report parameter.
myValue= params["Name"].value should work to retrieve the current report
parameter value. If you want the default value you could call the RE
API from script like :
var rr = reportContext.getReportRunnable();
var engine = rr.getReportEngine();
var tsk = engine.createGetParameterDefinitionTask( rr );
aaa = tsk.getDefaultValue("Name");
tsk.close();
Jason
On 7/1/2010 10:33 AM, mkrivic wrote:
> Hi,
>
> Is there any way to fetch report parameter value?
>
> For example, I have default parameter value in dataset, and I would like
> to fetch that value and show in column.
>
> I tried with this:
>
> myValue = params["Name"];
>
> but doesn't work...
|
|
|
|
Re: Fetching report parameter value [message #544382 is a reply to message #544080] |
Fri, 02 July 2010 14:00 |
|
It sounds like you want to replace the field value in that row with a different value. I'm not sure where that would be necessary. Do you really just want to display a different value on the final report? If you can explain what your full goal is for this question, people can have a better idea how to answer.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03243 seconds