Show TOC Start of Content Area

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

You need to arrange views in order to provide users with an intuitive user interface. An intuitive UI will make your application more user-friendly.

You can arrange, embed and organize views using any one of the following process:

·        ViewContainerUIElement: This element provides the flexibility of embedding and positing a view within a view container. A view container acts as a placeholder for views. A view container can have multiple views embedded inside it. You can set the dimensions of a ViewContainerUIElement using View Designer.

·        Viewsets: Viewsets are layout templates used to define the structure of a view. Viewsets thus allows you to use a default layout and arrange views within the layout. The different types of Viewsets available in Web Dynpro are GridLayout, TabStrip, TLayout and so on. The area within a Viewset is referred to as a view area. A Viewset can have multiple view areas. You can embed multiple views in each view area. You can also embed multiple Viewsets inside a Viewset.

The ViewContainerUIElement approach for arranging views must be followed if there is a need to allocate specific dimensions for a view.

Procedure

Using ViewContainerUIElement to arrange views

       1.      To enhance the view composition with the ViewContainerUIElement, open the View Designer tool, select the UI element out of the Layout category and drag it onto the View Designer editor.

       2.      Open the window unit via Open Open Window Editor on the window name in the Web Dynpro Explorer.

       3.      Insert a view into the ViewContainerUIElement.

 

Using Viewsets to arrange views

       1.      Open the window unit via Open à Open Window Editor on the window name in the Web Dynpro Explorer.

       2.      To arrange views using the viewsets, drag the viewset, such as TLayout, from the Window Editor palette and drop it in the editor.

       3.      To arrange the views, drag a view in the Window Editor into the view area of the viewset.

More Information

Choosing the Layout

View Designer

End of Content Area