CL_CHIP_WD_EVENT_HELPER - Help Class for Web Dynpro Event Dispatching

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Functionality

Help functions for forwarding generic events from a Web Dynpro view to multiple ABAP-OO classes.

Relationships

Example

To dispatch events in the Web Dynpro view, create an ACTION with the name CHIP_ACTION that contains the following source code:

CL_CHIP_WD_EVENT_HELPER=>DISPATCH_EVENT( WDEVENT ).

The usage class must implement interface IF_CHIP_WD_EVENT_HANDLER and its method HANDLE_EVENT. To register the class instance as an event handler, proceed as described in the following example:

DATA WD_BUTTON TYPE REF TO CL_WD_BUTTON.
" <...>
WD_BUTTON->SET_ON_ACTION( IF_CHIP_WD_EVENT_HANDLER=>CO_CHIP_ACTION ).
WD_BUTTON->MAP_ON_ACTION(
  CL_CHIP_UI_EVENT_HELPER=>CREATE_EVENT_MAPPING(
    EVENT_HANDLER = ME  EVENT_NAME = 'BUTTON_PRESSED' ) ).

Notes

Further information



RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.


Length: 1045 Date: 20120526 Time: 095642     triton ( 37 ms )