on 01-29-2015 1:25 PM
Hi experts,
I am creating component.This component have three buttons in main view.1.create 2.change 3.save
In save method how to get create event ID and change event ID .please help me in this issue.
Thanks&Regards
ananth
Hi Ananth,
Please find the following snippet for fetching the event ID.
DATA lo_api_controller TYPE REF TO if_wd_view_controller.
DATA lo_action TYPE REF TO if_wd_action.
lo_api_controller = wd_this->wd_get_api( ).
lo_action = lo_api_controller->get_current_action( ).
IF lo_action->name EQ ' '. "lo_action->name gives the action name
ENDIF.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anantha,
Please check with the following code,if it works.
DATA : lv_event_id type string.
CALL METHOD wdevent->get_string EXPORTING name = 'ID'
RECEIVING
value = lv_event_id.
Or you can add an importing parameter to the method in the component controller. Whenever you are calling that method from the event handler, pass this parameter with an ID so that it can be distinguished with the others.
Regards,
Harsha
hi,
I got reqired solution.Thanks to all for your helpful information.
Thanks&Regards,
ananth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.