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

WCF RIA Service call from Reports

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
RAVINDRA
Top achievements
Rank 1
RAVINDRA asked on 27 Jun 2011, 07:51 PM
Hi

We are developing a SL application using MVVM and WCF RIA Services and Entity Framework. We want to display reports using Telerik Report Viewer. The navigation follows as:

User selects the report criteria in xaml page(i.e client end) 
On click of Generate Report button, it will navigate to the page containing ReportViewer control.
The Report Viewer is containing the report uri and Report Name.
We have the logic for getting the data in a domain service in the same application.
And we have the method signature like below

public ICollection<UpdateFrequencySummaryReport> GetUpdateFrequencySummaryReport(DateTime? startDate, DateTime? endDate, bool isFixedView, string[] viewIds, int[] facilityIds, int[] regionIds, string[] viewServiceIds, string[] viewServiceStatusIds, string[] viewServiceStatusReasonIds);

It is taking so many parameters including (nullable types and arrays of ints and strings). Please let me know or provide me an example that how should i send the data through ReportParameters? Is there any other way other than report parameter? 

Thanks in advance
Ravindra

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 30 Jun 2011, 09:52 PM
Hi Ravindra,

Is that the method that provides the data? If so how did you bind the report to it (declarative data source components or NeedDataSource)? In either way currently the only way to pass data from your app to the report is through the report parameters as shown in the respective KB article. Since the report parameters have limited types, you can cast them to the correct type in your code prior utilizing them.

Regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
RAVINDRA
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or