Implementing a Custom WorkProtect Popup

Context

In addition to customizing the standard WorkProtect popup by configuration, you can replace it by your own custom implementation.

Procedure

  1. Develop a portal application that implements a custom WorkProtect popup box.

    This box is displayed by the portal as a modal window. It should return one of the following values:

    • DESKTOP : discard the changes and open the new page in the same window

    • NEWWIN : protect the unsaved data by opening the new page in a new window

    • CANCEL : cancel navigation and stay on the page to save the changes

    All other values are ignored.

    The following example shows a basic HTML page that displays three buttons. Each button returns one of the values specified above:

  2. Build and deploy your application.
  3. Configure the following parameters of the EPCF service:

    workprotect.mode.layout = external

    workprotect.popup.external.url = myCompany.myPortalWorkProtectPopup (the name of your component)

    For more information, see Configuring the EPCF Service .