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

Dynamic binding to report

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 13 Aug 2014, 09:45 PM
Hello,
Are there any examples or tutorials of dynamically binding data to a report? We are hosting the reports on a Web API and accessing them via an MVC app. For security reasons we do not want to use the Javascript-based ReportViewer on the MVC side to directly call the report on the API. Instead we would like to get an instance of that report, serialize it, and then dynamically bind the data to the report. How would we achieve this? 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 Aug 2014, 03:52 PM
Hi Brett,

The Html5 Report Viewer is client-side widget served by a running Reporting REST service. Thus all of the described operations (report building and data assigning) must happen on the server where the service is operating.

For the purpose you can use a custom report resolver in the service's CreateReportResolver method and access the user preferences previously saved by your custom controller's action in a storage of choice. More details how the HTML5 Report Viewer and Reporting REST service work, and how to use the custom resolver are available in this forum thread.


Let us know if you need any further help.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Brett
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or