on 05-12-2009 8:53 AM
Hello Friends,
Is it possible to explicitly call the eventhandler method `? or dynamically fire/invoke the event so that particular eventhandler method should be called ?
Regards,
Thanks guys, it works,
bye
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
that is very easy.
if u want to fire the event handler in a view...
do this
WD_THIS->event handler method name .
for ex : for a button ...if the event handler method name SEARCH..
THEN........WD_THIS-> SEARCH( ).
.
HOPE IT HELPS
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should call eventhandler as follows
DATA lr_event TYPE REF TO cl_wd_custom_event.
**Create event object
CREATE OBJECT lr_event
EXPORTING
name = 'ON_SELECT'. " give your event name which appears in wdevent in your handler method
* Call eventhandler
wd_this->onactionsel_rdb(
wdevent = lr_event " ref to cl_wd_custom_event
).
It is possible to dynamically fire the event if it is an user defined event. The event can be defined in the component controller in the events tab. The events can be fired dynamically using the Raise event option from code wizard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.