Entering content frame

Procedure documentation Declaring the Controller Context of a View Locate the document in its SAP Library structure

In the View Designer, choose the Context tab and declare the following context structure in it:

This graphic is explained in the accompanying text

Make the following settings for the properties of each context element:

Context element

Type

Attributes

Value

This graphic is explained in the accompanying text Customer

Value node

cardinality

0..n

singleton

true

This graphic is explained in the accompanying text Name

Value attribute

type

string

This graphic is explained in the accompanying text Address

Value node

cardinality

0..1

singleton

false

This graphic is explained in the accompanying text Street

Value attribute

type

string

This graphic is explained in the accompanying text City

Value attribute

type

string

This graphic is explained in the accompanying text HouseNo

Value attribute

type

string

This graphic is explained in the accompanying text PostalCode

Value attribute

type

string

This graphic is explained in the accompanying text Country

Value attribute

type

string

This graphic is explained in the accompanying text Order

Value node

cardinality

0..n

singleton

true

supplyFunction

 

This graphic is explained in the accompanying text    

We will add a supply function called supplyOrdersForCustomer later (refer to Adding a Supply Function).

This graphic is explained in the accompanying text Date

Value attribute

type

string

This graphic is explained in the accompanying text Product

Value attribute

type

string

This graphic is explained in the accompanying text Price

Value attribute

type

string

This graphic is explained in the accompanying text Currency

Value attribute

type

string

 

Remember that the singleton attribute for the context value node Address will be assigned the value false.

This graphic is explained in the accompanying text  After you have declared this context structure, you can continue by Designing the View Layout. You can then define the required data bindings between the UI elements of a view and the context elements.

  

  

 

Leaving content frame