trigger event from "child" webdynpro
i have a webdynpro that call to another webdynpro as popup. in the "child" webdynpro i have a button for do some validations and close this webdynpro. then i pass some data with interface node to the "parent" webdynpro.
ok, what i want now is trigger some event from the child WD when I close the window. and catch this event in the parent in order to do something....
but, i don't know how can i do it... i don't know if i need an event handler method in parent WD for this...
thanks in advance !
Baskaran Senthivel replied
CALL METHOD lo_window->subscribe_to_button_event
button = if_wd_window=>CO_BUTTON_CLOSE "here is the problem
action_name = 'POPUP_CLOSE'
action_view = lo_api_main.
This is not what i meant to subscribe.
You have to do than in the view->methods->create event_handler method by selecting child component usage, and the interface event.
Second option is
"Add the event handlers for the interface events
listener = lo_view_controller
handler_name = 'ONACTION_POPUP_CLOSE' "There should be a action popup-close
controller_name = 'INTERFACECONTROLLER'
event_name = 'POPUP_CLOSE' ).