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

Silverlight Viewer and Drill through parameters

3 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 07 Mar 2012, 04:28 PM

 

Hello,
 

We are using version Q2 2011 of telerik reporting.


I am using the Silverlight report viewer in my application and we are using our own controls outside of the viewer to feed in report parameters. This has worked well so far and the BeginRender event is working fine.

However we now have a requirement for a report that drills through to another report and I need to update our criteria selectors to reflect the new parameter values that are used. When the drill through report starts to load the BeginRender event fires on the client so I know that they have drilled through, but the args that are passed do not contain the parameters that were used.

If there any way to get the parameter values? Will this be addressed in a future release?

Any help would be appreciated.

Thanks,

Travis

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Mar 2012, 11:32 AM
Hi Travis,

As the Silverlight Report Viewer runs on the client and the reports are on the server, there is no way to know whether or not a parameter with a given name in the dictionary exists for the specified report on the server. The match is performed on the server after the request is sent and for this reason you do not have the names of the parameters and have to pay extra attention that the names you provide in the event and the report parameter names in the report definition match completely, this is valid for their types as well.

So the short answer is no, you cannot get the names/types of the parameters in the viewer's event. This is a limitation that cannot be overcame without reworking the Silverlight implementation and introducing a report object on the Silverlight client.

Regards,
Steve
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.
0
Travis
Top achievements
Rank 1
answered on 12 Mar 2012, 03:49 PM

Thanks Steve,

I understand that the initial args dictionary will be empty, since on initial render it only knows the name of the report. I was specifically interested in the Drill through action on a report.

In the drill through scenario, the viewer is initiating the request to load the report based on the element that was clicked. Somehow it is manipulating the parameters that are sent to the server as part of the request, I want to know if I can get access to the parameters that the viewer is obviously providing when the viewer is making the drill through request.

Is there a way to get access to the values that the drill through is useing when it makes its render request?

Thanks for your help,

Travis

0
Accepted
Steve
Telerik team
answered on 15 Mar 2012, 12:58 PM
Hi Travis,

The parameters for a drill-through report can be specified in design time, but those are not available at runtime for you to use for other purposes.

All the best,
Steve
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
Travis
Top achievements
Rank 1
Answers by
Steve
Telerik team
Travis
Top achievements
Rank 1
Share this question
or