cancel
Showing results for 
Search instead for 
Did you mean: 

How can i know user has clicked which button?

former_member202077
Participant
0 Kudos

Hello

In my_view i have 2 buttons (BUT_1 and BUT_2), but, am assigning same ACTION (my_action)for both of these buttons, bcz for user friendly we are keeping 2 buttons with differnent label, but technically both will do same.

But, still i want to differentiate in throwing message text, so, how can i know that the user whether pressed BUT_1 or BUT_2?

Is there any X position, Y position or any other difference to capture the BUT?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello,

From WDEVENT parameter that is passed to the Action handler method, you can get the ID of the button that is pressed.


data lv_value type string.

wdevent->get_data(
  exporting
    name   = 'ID'
  importing
    value  = lv_value
       ).

BR, Saravanan

Answers (0)