Fixed: documentViewer.DebugMode property was not being respected on the client side.This property by default is false (unless you have the source code and compiled GleamTech.Common.dll with Debug configuration).So by default, error details should not be shown on DocumentViewer's error dialog.Although error details were reduced on the server, the details text box was still being shown.Also from now on, this property will also effect client-side errors, for example no details should be shown on local PDF opening errors.
If you explictly set this property to true, it will show details in text box in the addition to the main message on error dialog.This can be useful for debugging purpose. This was the default behavior before v1.6.2:
Improved: Client side event can now be canceled via e.preventDefault() to suppress showing default error dialog.For example, e.detail.message can be examined and a custom message can be shown via documentViewer._showError() method.
documentViewer.ClientEvents.Failed = "documentViewerFailed";
On client-side:
function documentViewerFailed(e) { var documentViewer = e.target; if (e.detail.message == "some specific message") { //Canceling this event, to suppress showing error dialog with default error message. e.preventDefault(); //Show your custom message with error dialog documentViewer._showError("customMessage"); //Or write to browser console console.log("customMessage"); } }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add notify@gleamtech.com to your trusted senders list in your email software.