SQL Connection

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    11 posts
    Member since:
    Nov 2016

    Posted 20 Dec 2016 Link to this post

    Hello

    I've design some reports in the Report Designer and they're working great, but what I need to do is to change the DB being connected to when I load the report.  The idea would be to pass a connect string to the Report Rest Service, as we already pass the filename for the report.  Is this possible?  

    Thanks
    Andrew
  2. Katia
    Admin
    Katia avatar
    693 posts

    Posted 21 Dec 2016 Link to this post

    Hi Andrew,

    Check the approach suggested in Changing the connection string dynamically according to runtime data Kb article. This is a sample approach demonstrating how to iterate over report's inner data items DataSource properties and can be modified according to your scenario.

    To be used with HTML5 Report Viewer, the modifications need to be placed in the Resolve method of a custom resolver used by the Reporting REST service.


    Regards,
    Katia
    Telerik by Progress
    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 Feedback Portal and vote to affect the priority of the items
Back to Top