Displaying Error and Warning Messages

When a form service request executes on the EnterpriseOne HTML Server, any errors and warnings displayed on the EnterpriseOne form are returned to the EnterpriseOne ADF application in the JSON response. You can retrieve these messages from the response object and display them to the user using the EnterpriseOne ADF Container's message popup, which provides a modal dialog window for error, warning, and information messages. You will typically perform the following steps to display messages to the user:

  1. To display a single message, call the E1AdfUtils method to add the individual message to one of the exception lists in the EnterpriseOne ADF Container (JDEADFContainer).

  2. To display multiple messages, collect error, warning, and information messages in separate lists and call the E1AdfUtils methods to add these lists to the JDEADFContainer's exception lists.

  3. Call the launchMessagePopup() method to display the JDEADFContainer's message popup.