Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

How can I change Viewer widget error message to my custom message

  • 1.  How can I change Viewer widget error message to my custom message

    Posted Mon January 18, 2021 07:27 PM

    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("Документ не найден, Сворачиваемся :)"); }

    }



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: How can I change Viewer widget error message to my custom message

    Posted Tue January 19, 2021 01:55 AM

    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



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration