In a UI Component I would like to display a popup (yes/no) before save when the user clicks on the Save button.
I redefined the event SAVE of the view 'Overview' and wrote my own code in the method redefinition.
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
iv_title = iv_title
iv_text = iv_text
iv_btncombination = iv_btncombination
rv_result = gr_confirm_popup.
gr_confirm_popup->set_on_close_event( iv_event_name = 'POPUP_EVENT'
iv_view = me ).
If the user clicks on the Yes button, I need to save by calling the method super->eh_onsave. But the result of the user action is getting in the method EH_ONPOPUP_EVENT.
I cannot call this method super->eh_onsave from the event 'POPUP_EVENT'.
The only way I found is to call once again the method EH_ONSAVE and to process the full code. What about the two parameters HTMLB_EVENT and HTMLB_EVENT_EX ?
Is there a better way to launch standard save from the event 'POPUP_EVENT' ?