Come for answers. Stay for best practices. All we’re missing is you.
I want to change a custom Viewer widget error message to a custom readable message for users. The error message occurs when a document content is not found. I was trying to do smth like this in Viewer.js file
_handleOpenItem: function(payload) { if(true) { --I don`t know how to handle Content Not Found Error var messageDialog = new ecm.widget.dialog.MessageDialog(); messageDialog.showMessage("Документ не найден, Сворачиваемся :)"); }
}
Hi,
You may check the returned errors of the request response. For example, response.errors[0].text ("The requested items cannot be found.").
Regards,
Angie