Creating Views

Use

There are the following ways to create a View:

  • Within your Web Dynpro component

    You create the View directly in the Web Dynpro component with graphical support of the Data Modeler tool and embed it in a window afterwards.

  • Within your Web Dynpro window

    You create and embed a View with graphical support of the Window Editor tool.

The View layout is designed and implemented in another graphical tool, the View Designer .

Prerequisites

  • You have created a Web Dynpro DC.

  • A WD component with a window definition is available.

Procedure

Creating a View in a Component

  1. In the Web Dynpro Explorer open the component node to which you want to add a View.

  2. In the context menu of the Views node, choose Create View and follow the wizard.

Creating a View in a Window

  1. Open the Window Editor by choosing the context menu entry on the window name in the Web Dynpro Explorer .

  2. From the Palette , drag and drop the option New View onto the canvas.

Embedding an Existing View in a Window

  1. Open the Window Editor by choosing the context menu entry on the window name in the Web Dynpro Explorer .

  2. From the Palette , drag and drop the option Existing View and follow the wizard.

Result

The new View is graphically displayed in the Window Editor . In the Web Dynpro Explorer , the View is displayed below the subnode Views of your WD component node. The following files were automatically created:

  • <myView>.wdview

    View context XML file for the data flow between the view and the view context. The file contains the following subobjects:

    • View controller reference

    • WD component reference

    • Transparent container for user interface elements

    • User interface element references, including layout data

  • <myView>.wdcontroller

    This controller XML file for the data flow between the view context and the other WD entities has the following parameters:

    • Controller event handler inbound plug

    • Main node Context (value node with cardinality 1:1)

    • Controller reference to the WD component

  • <myView>.wdview.xlf

    The View properties XML file is relevant for translation.