on 03-07-2014 5:57 AM
Hi Experts,
I have a req that i want to read event_id of on action button in portal in my post_exit to write logic ...please help how to read event id of button. i assign event id and everything but am not getting how to read event id and write logic in my post_exit method.Am trying to use this code in post_exit method but am getting error as io_event is unknown please help me to solve this. this is my code.
data : lv_action_id type string.
lv_action_id = io_event->get_string( 'BTN_CORPORATE' ).
Regards
Syed
Hi Syed,
In which case you are asking about the event handler. Are you talking about at feeder class level or is it a WDA related component, explain in detail.
If you are dealing with FPM then make sure your code is placed in PROCESS_EVENT.
Thanks and regards,
B.Homeswara Prasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
Hope you are using the post exit of method BUTTON_PRESSED in component controller and you can read the button id as below
i.e. go to methods tabl of component controller and crete POST_exit for method BUTTON_PRESSED
----------------------------
Also, another way of doing the same ....
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
Well, you have written the code in post_exit of ONACTIONBUTTON_PRESSED !!!!!,
Then this method does not have io_event but its having WDEVENT.
DATA lv_id TYPE string.
wd_event->get_data(
EXPORTING name = 'ID'
IMPORTING value = lv_id ).
CASE LV_ID.
WHEN 'BTN_CORPORATE'.
"write your logic here
WHEN OTHERS.
ENDCASE.
Hope this resolved your issue.
Regards,
Rama
Hi Syed,
You will have to use GET_NAME method for this.Your code should be like this.
data: lv_event_name type STRING.
lv_event_name = wdevent->GET_NAME( ).
Thank's
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.