How to customize WebServiceDataSource URL
Environment
Product | Progress® Telerik® Reporting |
Description
Sometimes it is necessary to modify the WebServiceDataSource URL dynamically, for example depending on the environment (i.e. test or production).
Solution
-
The Service Url property of the WebServiceDataSource should be set as an inline parameter @Url, i.e. in Configure data retrieval dialog of the WebServiceDataSource Wizard:
Service Url: @Url -
The value of @Url should be provided as an Expression (i.e. taken from a Report Parameter) so that its value to be evaluated run time - in Configure request parameters dialog of the Wizard :
Name Type Value Design-Time Value @Url Inline = Parameters.Url.Value https://www.googleapis.com/books/v1/volumes