Show TOC Start of Content Area

Procedure documentation Mapping View Contexts to the Component Controller Context  Locate the document in its SAP Library structure

To ensure data consistency inside a Web Dynpro DC, the data is stored in the Component Controller (or in a Custom controller) and the different view controller contexts reference to this data. To realize this, you have to map the relevant contexts.

Procedure

...

       1.      Go back to the component view using the graphical tool or alternatively expand the node Web Dynpro Components WelcomeComp.

This graphic is explained in the accompanying text

       2.      Choose This graphic is explained in the accompanying textData Link from the Palette and draw a line from the WelcomeCompView to the Component Controller. In the wizard that appears you can map the view context to the component context.

       3.      Drag the userNode in the context of the component controller to the root node of the view controller context, and drop it.

       4.      Select the checkbox for the username attribute and confirm with Finish.

This graphic is explained in the accompanying text

You have now created a new node and attribute for the view context and mapped it to the corresponding component context element.

       5.      Repeat the last three steps to map the ResultView’s context to the Component Controller context.

Result

The contexts of both views are now mapped to the Component Controller context. The data is stored in the component controller context and the view contexts reference to it. This ensures that the data is consistent inside a Web Dynpro DC.

This graphic is explained in the accompanying text

 

End of Content Area