cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro event call

vijay_vikram2
Explorer
0 Kudos

  I have two buttons in Webdynpro view Button A and Button  B.

I have a mehod for Button A and I need to call this method in button B.

But using wizard i tried it, but when I tried to call a Button A method which is an event handler and it is asking me to fill wd_event type ref to  Cl_wd_event.

So what value should I pass. to wd_event?

Thanks

Vijay

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member211591
Contributor
0 Kudos

if both methods are Action handler, then this should work in Method B:

" wd_this->onactionMethodA(  wdevent = wdevent )."

former_member211591
Contributor
0 Kudos

hi...

if Method A is an Event handler, so why don't you just fire the Event in method b?

Regards

iSD

Former Member
0 Kudos

Hi Vijay ,

Since Method (On action Event ) for Button A - you are passing parameter like  input parameters for that method handler .

So when you call Method A in Method B(ButtonB) you will have to pass exporting parameters here too and get importing parameters .

Regards,

Bharathi

Former Member
0 Kudos

Hi Vijay,

Check if there is any importing parameter in event handler of button A.

you can pass that parameter in wd_event.

for example

Inside method B you can call method A like:

method_name_A( parameter ).