Start of Content Area

Procedure documentation Step 3: Context Mapping of the First View  Locate the document in its SAP Library structure

In step 1 you created the NODE1 node with the MYNAME attribute in the context of the component controller. In this step, this context should first be made accessible to the first view.

This graphic is explained in the accompanying text

Your first view is still displayed.

Procedure

       1.      Switch to the Context tab page. The context of the STARTVIEW that is still empty is displayed on the left-hand side of the page. The context of the component controller that you have just edited to define mapping is available on the right-hand side.

       2.      Open the context menu of the root node of the view context and create a new node.

       3.      Enter a name for this node (such as "VIEW1"), confirm the window and save your work.

       4.      Now open the context menu of the new VIEW1 node and choose Define Mapping.

A new window now lists all nodes of the component controller context that are available; in our example, this is only the NODE1 node.

       5.      Select the NODE1 node by double-clicking on it. Confirm the dialog box that follows once you have read it.

Result

If you now open the VIEW1 node of the view context and the NODE1 node of the context of the component controller, you can see that the MYNAME attribute is now available in both hierarchies. The two contexts are now linked to each other.

As soon as the value of the MYNAME  attribute changes in the view context, for example because of user input, the new value of the attribute will also be available in the context of the component controller. The same applies conversely: if the value changes in the context of the component controller (for example, if a mapping was defined by an entry in a different view for its context nodes), the attribute is also assigned a new value immediately also in the context of the current view.

The MYNAME attribute must now be linked to the input field in the layout of the view.

Step 4: Binding the Attribute

 

 

End of Content Area