This is a migrated thread and some comments may be shown as answers.

Retrieve parameter values in Reporting WCF Service RenderAsync method on server side

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben Jones
Top achievements
Rank 1
Ben Jones asked on 09 Mar 2012, 01:58 PM
HI,

I'm attempting to create a report for a silverlight client using the Silvleright Reporting Service proxy class, in particular the RenderAsync method which takes a NameValueDictionary as the report parameters. My problem is that when I add a parameter in with the key "reference", and call the method for a particular report (which resides in the WCF application housing the Reporting Sevice, the passed parameter does not populate the corresponding parameter value in the report.

If the parameters created in the report are not meant ot be automatically popualted using this method, how can I retrieve the passed in parameters? I have a breakpoint in the constructor of the reporty I am trying to generate and I want to call a method to populate an object DataSource using the passed in parameter.

Kind Regards

Ben

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Mar 2012, 05:33 PM
Hi Ben,

It seems that you have used the Report Parameter definition item instead of the processing counterpart. The definition report parameter value is actually the default value. The processing value is available in the report processing states but our suggestion is to bind the datasource parameter to the report parameter declaratively as shown in the ObjectDataSource Wizard and Using Parameters with the ObjectDataSource Component

Additionally if you want to access the report parameters processing value check out the Using Report Parameters programmatically.

Regards,
Peter
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
Tags
General Discussions
Asked by
Ben Jones
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or