Entering content frame

Background documentation Implementing the Controller Context of a View Locate the document in its SAP Library structure

To implement the controller context of a view, you must work through the following three topics consecutively:

·        Demo business object layer (demo BOL): First, implement a class called SomeBOL.java. At runtime this class supplies data for the table rows to be displayed in CustomerTable and OrderTable.

·        Initializing context: You initialize the declared context structure in the view controller method wdDoInit(). The main purpose of this method is to fill the context value nodes with instances of node elements of the appropriate type.

·        Supply function: You implement a supply function, which is called from the Web Dynpro environment and fills the inner value node Order with the node elements for the selected customer. To trigger communication with the runtime environment, you must bind an action to the property LeadSelect of the Order table.

 

This graphic is explained in the accompanying text  Save the class SomeBOL.java, in which you will implement a minimal business object layer used to represent the Customer and Order data. For more information on how to do this, refer to Implementing a Demo BOL.

  

  

 

Leaving content frame