Show TOC

Unsubscribing a Portal Event Using a Code SnippetLocate 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 Start of the navigation path Windows  Next navigation step Show Views  Next navigation step Snippets End of the navigation path
  2. In the Web Dynpro Explorer , select the required view.
  3. Choose Start of the navigation path Open Next navigation step Java Editor End of the navigation path 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 .