Show TOC

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

Prerequisites

You have created:

  • Views

    For more information, see Creating Views

  • An outbound plug for the view in the Navigation Modeler.

    For more information, see Creating Plugs

Context

You use this procedure to navigate from one view to another view using code snippets in Web Dynpro.

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 Fire a Plug snippet and drop it in the appropriate user code area of the Java editor.
  5. In the Insert Snippet: Fire a Plug dialog box, select the required plug and choose Insert .
  6. In the confirmation dialog box, choose Yes to insert the snippet in the Java editor.

    The system inserts the required code to trigger an outbound plug from a view.