Entering content frame

Procedure documentation Creating a Window Locate the document in its SAP Library structure

The Window is the largest logical, purely administrative Web Dynpro user interface element. Furthermore, the window serves as an interface between the root Web Dynpro component and the other entities of a Web Dynpro application. For this purpose, the window uses the interface view uniquely assigned to it.

You must create a window for a Web Dynpro application. The Navigation Modeler, the tool that provides support when implementing views and navigation entities, is linked to the window element.

You can define more than one window for a Web Dynpro application.

Prerequisites

Before you create a window, you must define a Web Dynpro project.

Procedure

There are two ways of creating a window:

..

       1.      In the Web Dynpro component wizard, you can define a window when you define a Web Dynpro component.

       2.      You can define an additional window for a Web Dynpro application at a later stage.

The following description refers to the second of these options. The procedure for the first option is described under Creating a Component.

...

                            a.      In the Web Dynpro Explorer view, choose the context menu entry This graphic is explained in the accompanying textCreate Window for the node This graphic is explained in the accompanying textWindows.

                            b.      Make the required specifications in the wizard:

Result

When you define a window, the Web Dynpro Generator creates the following XML files in the directory /<myWebDynproProject>/src/packages/<myPackage>/:

·        <myWindow>.wdwindow

¡        The elements define the use of the view set.

·        <myWindow>.wdnavigation

¡        The elements define this window for the navigation in the Web Dynpro application.

·        <myWindow>InterfaceView.wdcontroller

¡        The window is defined as an interface view of the component. The interface view has a controller function for the component. The Web Dynpro Generator creates a controller event handler with the name onPlugDefault.

·        <myWindow>InterfaceView.wdinterfaceview

¡        A valid interface view is defined for the Web Dynpro component. The generated inbound plug startup starts the interface view.

The directory /<myWebDynproProject>/Model Folder/src/packages/<myPackage> contains the XML file Window_WDComp1.txvWDWindowDiagram. It is based on the graphical model abstraction layer, which was included to ensure the best possible display of graphics within the Web Dynpro framework: It defines the grid values of the view set cells in the diagram view that displays the Navigation Modeler tool.

In the Navigator view, you can display these files by choosing Open With ® Text Editor from the context menu. Under no circumstances should you make any changes to these files.

Additional Information

A practical example of how to create a window is available under:

Tutorial: Defining a Web Dynpro Window

 

Leaving content frame