on 06-13-2016 4:01 PM
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
if both methods are Action handler, then this should work in Method B:
" wd_this->onactionMethodA( wdevent = wdevent )."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi...
if Method A is an Event handler, so why don't you just fire the Event in method b?
Regards
iSD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.