Entering content frame

Procedure documentation Declaring Event and Method in the Interface Controller Locate the document in its SAP Library structure

Users of Web Dynpro components can react only to events that are defined in the corresponding component interface controller. In the example application, the Embedder Web Dynpro component uses the Internal Web Dynpro component. The triggering method for an event can be called only within the controller itself; therefore, you must declare an additional method in the view controller that can then be called by each user of the controller. The method calls the triggering method of the event (indirection).

Procedure

...

       1.      In the Web Dynpro Explorer, select the node WebDynpro_Eventing ® Web Dynpro ® Web Dynpro Components ® Internal ® Component Interface ® Component InterfaceController:

This graphic is explained in the accompanying text

Declaring the InnerEvent

       2.      Switch to the Events perspectives view.

       3.      In the Events section, choose New and enter InnerEvent as the name of the new event.

       4.      In the table, select the new event InnerEvent and in the bottom section Parameters, choose New.

       5.      Enter textas the name of the event parameter and select string as parameter type. Choose Finish.

This graphic is explained in the accompanying text

Declaring Method fireEvent

       6.      Switch to the Methods perspective view.

       7.      In the Methods section, choose New.

       8.      Select Method as Method type and choose Next.

       9.      Enter fireEvent as the name of the new method and keep void selected as the Return type. To complete the first part of the method definition, choose Finish.

   10.      In the table, select the new method fireEvent and in the bottom section Parameters, choose New.

Enter text as the name of the method parameter and select string as parameter type:

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text Now continue with Setting Declarations in the Form View Controller.

 

Leaving content frame