cancel
Showing results for 
Search instead for 
Did you mean: 

events

Former Member
0 Kudos

Hi,

i have two buttons in my WD view.

i have assigned same event to both the buttons.

now how do i know which button have triggered the event.

please let me know soon.

Thanks & Regards,

Ritwik.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member515618
Active Participant
0 Kudos

Hi Ritwik,

Do the following in the event handler to get the button on which user clicked on.


  DATA l_button TYPE string.

CALL METHOD wdevent->get_string
  EXPORTING
    name   = 'ID'
  receiving
    value  = l_button    

l_buton holds the name of the button user clicked on.

Regards,

Sravan Varagani

Former Member
0 Kudos

Hi Ritwik,

check your "r_param->id = button1 or button2" in your event handler method.

basically these two button technical names you can get in this r_param->id.

r_param->id will give you the button which you clicked.

All the best.

Regards,

Naresh.

Former Member
0 Kudos

hi ramesh,

i dint find anywhere this r_param->id in my event handler.

can you be a bit more clear please.

thanks,

ritwik.