Show TOC

Procedure documentationUsing Code Snippets to Relate a Context Attribute Locate this document in the navigation structure

 

You use this procedure to reuse context attributes using code snippets in Web Dynpro.

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 the Relate Context Attribute snippet, and drop it in the suitable user code area of the Java editor.

  5. In the Insert Snippet: Relate Context Attribute dialog box, drag the required context attribute from the source and drop it on the target context attribute.

  6. Choose Finish.

  7. In the confirmation dialog box, choose Yes to insert the snippet in the Java editor.

    Values from the source context attribute are copied to the target context attribute.