Show TOC

Procedure documentationUnsubscribing a Portal Event Using a Code Snippet Locate this document in the navigation structure

Prerequisites

You have created the views and their corresponding action handlers.

For more information, see Creating a View

For more information, see Creating an Action

Procedure

  1. In the Web Dynpro perspective, choose   Windows   Show Views   Snippets  

  2. In the Web Dynpro Explorer, select the required view.

  3. Choose   Open   Java Editor   using the secondary mouse button.

  4. Drag the UnSubscribe from a Portal Event snippet and drop it in the suitable user code area of the Java editor.

  5. In the Insert Snippet: Unsubscribe to Portal Event dialog box, enter the necessary details such as Namespace, Name, and Handler Action and choose Insert.