Entering content frame

Procedure documentation Setting Declarations in the Form View Controller Locate the document in its SAP Library structure

Before designing the view and implementing the view controller, you must first make several declarations. To trigger an event from the user interface, you need an action. Executing the action triggers an event whose parameter value is stored in the view controller context as a value attribute. To be able to trigger the InnerEvent (defined earlier in the component interface controller) in the Form view controller, you must define an appropriate controller usage.

Procedure

To display the perspective views for the Form view in the Web Dynpro tools, in the Web Dynpro Explorer, select the node WebDynpro_Eventing ® Web Dynpro ® Web Dynpro Components ® Internal ® Views ® Form.

Defining Action SendButtonPressed

...

       1.      Switch to the Actions perspective view.

       2.      In the Actions section, choose New.

       3.      In the Name field, enter SendButtonPressed.

       4.      In the Text field below, enter Send Event. This text now appears in the UI elements (such as LinkToAction, Button) that are connected to this action, provided that their text property has not been overwritten in the Properties perspective view.

Keep the checkbox Use default checked. 

This graphic is explained in the accompanying text

       5.      Choose Finish to confirm.

Declaring the View Controller Context

...

       1.      Switch to the Context perspective view.

       2.      Add a new value attribute called Text: To do this, select the root node This graphic is explained in the accompanying text Context and, in the context menu, choose New ® Value Attribute.

This graphic is explained in the accompanying text

Using the Component Interface Controller

...

       1.      Switch to the Properties perspective view.

       2.      In the section Required Controllers, choose Add...

       3.      In the wizard, select This graphic is explained in the accompanying text Internal (Web Dynpro Component Interface Controller) and choose Ok to confirm.

This graphic is explained in the accompanying text

In the list of the used controllers, the component interface controller of the Internal Web Dynpro component is displayed.

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text Now continue with Designing the Layout of the Form View.

 

Leaving content frame