Show TOC Start of Content Area

Procedure documentation Defining Controller Relations  Locate the document in its SAP Library structure

Controllers are built in a hierarchy. View controller should only hold data that concern the view itself. Data that are to be used in more than one view or hold data from the back-end, belong to the component controller or to a custom controller.

To get access to this data in the view, you have to map the context of the respective view controller to the component or custom controller context. The data is hold in the custom controller and you reference to this context in your view context.

Mapping contexts is done by drawing data links from one controller to another and specify the context nodes, you want to map. You always map from a controller that is ranking below in the hierarchy.

Procedure

navigate to ...

       1.      In the WD Explorer, navigate to your component and select Open Data Modeler in the context menu.

       2.      Select Create Data Link and draw an arrow for example from the view controller to the custom controller.  The Context Mapping Wizard appears.

Note

If you cannot draw a data link, the direction you try to map is wrong.

 

This graphic is explained in the accompanying text

       3.      Draw arrows between the nodes you want to map.

End of Content Area