Display custom error messages on web-based viewer
|Product||Progress® Telerik® Reporting|
|Report Viewer||All web-based viewers|
How do I change the default error messages displayed by the HTML5-based Report Viewers with my custom ones? Example of such a message is the following:
Unable to get report parameters. An error has occurred. An error has occurred while resolving X data source: An error occurred while invoking data retrieval method.
Messages displayed by the HTML5-based Report Viewers are separated into two "categories". While the string "Unable to get report parameters." is a client-side message, the rest of the message is server-side one.
To change the client side text, use the approach demonstrated in the Localization article and change the corresponding value. However, this won't remove the server-side message. To change the entire message, use the following code snippet: