on 08-08-2013 2:28 PM
Hi,
There are 2 buttons with the same onaction event. Is it possible to identify which button has been pushed when both buttons execute the same method via the same onaction? If yes, how is it possible?
Best Regards,
Eelco de Vries
Hi,
Yes. It's possible. You can get the button ID via Event Parameters.
In the OnAction event handler write the below code.
DATA lv_button type string.
lv_button = wdevent->get_string( 'ID' ).
lv_button contains the button ID of the clicked button. You can now differentiate it.
You cal also use a READ table statement on wdevent->parameters with key 'ID'.
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
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.