on ‎2008 Apr 15 11:55 PM
Hi Experts,
I have a simple question.
I'm having a event which is bounded with a inputfield.
I want to call this event in the wddoinit.
When i used code wizard, it prompts me to give WDEVENT.
How can i call a event in the wddoinit.
Thnx,
Suba
Request clarification before answering.
Hi Suba,
I guess you are talking about specifying an action for an event of a UI element. And it is this action (or event handler) that you want to call from WDDOINIT using code wizard.
For example for InputField we have one predefined event onEnter. For this event you can specify an action say GO which will act as the event handler (ONACTIONGO). Event handlers can be viewed in the METHODS tab.
Event Action Event Handler
onEnter GO ONACTIONGO
Use following code to call this event handler explicitly from WDDOINIT:
DATA : zcustom_event TYPE REF TO cl_wd_custom_event.
CREATE OBJECT zcustom_event
EXPORTING
name = 'ON_ACTION'.
wd_this->onactiongo(
wdevent = zcustom_event
).
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.