Creating a Configurable Dropdown Using UI Snippets in Web Dynpro

Use

You use this procedure to create a configurable dropdown using the available UI snippets in Web Dynpro. You can generate values in the dropdown UI element as follows:

  • Create a context attribute of Dictionary type that has a default set of enumeration values associated with it.

  • Insert your code in the user code area of the Java editor based on your business logic.

Prerequisites

  • You have created a Web Dynpro development component (DC).

    For more information, see Creating a Web Dynpro DC

  • You have created a Web Dynpro component, window, and views.

    For more information, see Creating Components

  • You have created an additional window.

    For more information, see Adding Windows

Procedure

  1. In the Web Dynpro perspective, choose Start of the navigation pathWindows Next navigation step Show Views Next navigation step SnippetsEnd of the navigation path .

  2. Drag the Configurable Drop Down snippet, and drop it on the View Designer.

  3. In the Insert Snippet: Configurable Drop Down , select the suitable attribute from the context tree and choose Insert .

The system creates a dropdown on the View Designer.