Entering content frame

Procedure documentation Editing the Context for the View Locate the document in its SAP Library structure

Use

The context is the view’s local memory and allows it to communicate with other elements of the application. Each UI element binds to data contained in a context. Data is accessed using the UI element’s context as opposed to the UI element itself.

A context is hierarchically structured into nodes. You define the nodes at design time. At runtime they represent a managed set of data instances. Nodes provide type information about the object instances maintained by the node.

 

Procedure

The view context must have the appropriate structure.

...

       1.      To display the view context click the button Context below the View Designer window.

       2.      In the View Designer window click Context with the secondary mouse button.

       3.      Choose New -> Value Node.

A dialog box appears.

       4.      Enter A in the field Name.

       5.      Choose Finish.

 

Create a value attribute for the data to display the text for the categories:

...

       1.      Click A with the secondary mouse button.

       2.      Choose New -> Value Attribute.

A dialog box appears.

       3.      Enter CategoryText in the field Name.

       4.      Choose Finish.

 

Create the context structure for the data of the first data series as follows:

...

       1.      Click A with the secondary mouse button.

       2.      Choose New -> Value Attribute.

A dialog box appears.

       3.      Enter Series1Value in the field Name.

       4.      Choose Finish.

 

Create the context structure for the data of the second data series as with the first data series. Call it follows Series2Value.

...

 

Result

You have now created the context for the view. You should be able to see the following structure in the View Designer:

 

This graphic is explained in the accompanying text

Leaving content frame