cancel
Showing results for 
Search instead for 
Did you mean: 

Using parameter of Event handler

Former Member
0 Kudos

Hi,

I have two buttons in web dynpro which will perform deleted selected row and delete all rows.

When click on both the buttons, i need to display a confirmation popup,.

I have defined these things. But now currently i have defined 2 methods to do this. IS there any other way?

Is it possible to define a parameter in the event handler? if so, how to pass the value to it?

Regards,

Niyaz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi !

If you name the buttons different, you can use the same action methode. There you can get the name of the button out of the importing parameter "event" and so you can follow your logic for every button.

hope this helps...

Former Member
0 Kudos

Hi,

as i think u can not define the parameters for a button event.

U can do it by some other way...

On the on click event of a button call a event handler without any import parameters. Now in this method call one other method in the same controller. Where u can write the common code and also can send the values through parameters.