Skip to Content
0
Oct 19, 2011 at 07:10 AM

How to fire event in view controller from component controller.

64 Views

I have a component usage that fires an event wich i have subscribed in the component controller.

iv_usage->subscribe_event( iv_event_name = 'TAKE_IT'

iv_handler = me ).

After the event the method IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT in the component controller is called.

method if_bsp_wd_event_handler~handle_event.

??????

endmethod.

The usage component is opened as a popup window. After pressing a button, the data is transfered via context node binding to the calling component. But now i want to close the popup.

My intension is to fire a event for the view controller in the IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT method that closes the popup.

Is this possible?

Or let me explain it this way:

I want to close a popup after a button in the popup is pressed.

best regards

Jürgen