Home
Analytics
Set hidden parameter via code
walnash
Hi,
I have designed a report in BIRT which has 2 parameters and one of them is hidden. I have integrated this report to my asp .net application using JSAPI. I want to set the hidden parameter programmatically and set the other parameter via user. I tried using the JSAPI class actuate.viewer.setParameters({ CultureId: "33" }). This code set this hidden parameter, but the value of other parameter set by user, is not sent to server. If i also use the class, actuate.viewer.setParameterValues(ParameterValues), this over-rides my hidden parameter value and only user entered value is sent.
I have tried changing the order something like below:
actuate.viewer.setParameterValues(ParameterValues)
actuate.viewer.setParameters({ CultureId: "33" })
This over-rides user entered value and only hidden value is sent to server.
I need to set just the hidden parameter via code while i retain all other parameters entered by user. I cannot specify all the parameter in the JSAPI class actuate.viewer.setParameterValues() as i will have many more reports with different number of parameters, and my aspx page is a common page to render them all.
Please help me with this and show me how to set the hidden parameter via JSAPI and retain the value of other user entered parameter.
Thanks,
Avinash
Find more posts tagged with
Comments
mwilliams
Any way you can attach a simple example report and JSAPI code that I can run, so I can see exactly what your setup is and so I can test on it? Thanks.