Show TOC

Procedure documentationStep 3: Context Mapping of the First View Locate this document in the navigation 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.

Procedure

Your first view is displayed.

  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 Defining 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 and confirm the following dialog.

Result

If you 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 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 mapping was defined by an entry in a different view for its context nodes), the attribute is also assigned a new value immediately in the context of the current view.

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

Step 4: Attribute Binding