Show TOC

Procedure documentationStep 7: Embedding the View in a Window Locate this document in the navigation structure

 

Each view is a self-contained unit and does not contain any information about navigation to other views. To de able to define such a navigation, and to make the views accessible for users, they have to be embedded in a window.

This graphic is explained in the accompanying text.

Note Note

By default, a MAIN view is also embedded into the main window automatically when Creating a Component.

Therefore embedding views manually is only necessary if the automatic embedding did not take place, for example for older Releases, or if you want to embed views that were created afterwards into specific windows.

End of the note.

An empty name with the same name as the component itself is generated when a component is created. You now have to embed the two views.

Procedure

  1. Open the Windows node in the object list hierarchy on the right-hand side of the Workbench.

  2. Double-click on the MYCOMPONENT window there, which was created automatically.

    The structure of your window is now displayed in the Editor on the right-hand side. It is still empty since you have not yet embedded any views.

  3. In the structure of the window, open the context menu for the MYCOMPONENT node and choose Embed View in change mode.

  4. Specify the name of the view that you want to embed:

    Using F4 helo you get a list of all views of the current component for selection.

    Select the STARTVIEW by double-clicking on it and confirm your entries.

  5. Repeat the process to embed the second view in the window.

  6. In the structure of the window, open the context menu for the STARTVIEW node and choose Set as 'Default'.

  7. Choose Save.

Result

The MYCOMPONENT window now contains the two views, which can be bound to each other. The STARTVIEW was set as the default view, which means that it is always called first when the window is called.

Step 8: Defining the Navigation