Show TOC

Using Code Snippets to Fire a Portal EventLocate this document in the navigation structure

Prerequisites

You have created:

Context

You use this procedure to trigger an event to a portal from a Web Dynpro application using code snippets in Web Dynpro.

For more information, see Firing a Client Event

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 right mouse button.
  4. Drag Fire Portal Event snippet and drop it in the appropriate user code area of the Java editor.
  5. In the confirmation dialog box, choose Yes to insert the snippet in the Java editor.
  6. In the Insert Snippet: Fire a Portal Event dialog box, enter the necessary details such as, Namespace , Name and so on. Then select one of the following depending on your requirements:
    • Publish context attribute values

    • Publish string values

    • Do not publish data

  7. Choose Insert .