Show TOC

Procedure documentationUsing Code Snippets to Fire a Portal Event Locate this document in the navigation structure

 

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

Prerequisites

You have created:

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 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.