cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying the clicked button

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you Kiran,

It did the trick.

Best Regards,

Eelco

Answers (0)