on 03-04-2016 2:30 PM
Hey,
one question before the weekend starts
When I use my button, I want him to export his ID to the method which is being called. So that I can use for example a case-statement to look for the correct values I need later.
It would be nice, because the methods of the buttons differ just a bit so it would be lot more work to implement a new method for each button.
Thanks for any hints!
Have a nice weekend
Hi,
You can use same event handler method for 2 different buttons. You can get the button ID using below code:
DATA lv_button type string.
lv_button = wdevent->get_string( 'ID' ).
lv_button contains the button ID of the clicked event. Using this you can differentiate which button is clicked.
Alternately, you could use a READ TABLE statement on wdevent->parameters with key 'ID'.
hope this helps,
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 |
---|---|
88 | |
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.