Hi Friends,
Could you please help me in resolving below webdynpro issue.
With a button (SAVE) click on 1st webdynpro application, Iu2019m calling a confirmation popup window using CREATE_POPUP_TO_CONFIRM method ("Data has been saved" is the message in the popup window). Then with the OK button on confirmation popup window, Iu2019m calling the EXIT plug to go to another webdynpro application
Issue is: If I execute this webdynpro application in Enterprise Portal then the confirmation popup window is not getting closed even after reaching to the 2nd webdynpro.
But If I execute direct webdynpro URL, confirmation pop is getting closed and there is no issue.
CODE:
Code for SAVE button action: Here Im calling the confirmation popup window.
DATA: lt_text TYPE string_table.
DATA: mr_popup_window TYPE REF TO if_wd_window.
pop a confirmation window for display purpose
DATA: l_window_manager TYPE REF TO if_wd_window_manager,
l_cmp_api TYPE REF TO if_wd_component,
l_window TYPE REF TO if_wd_window.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
APPEND 'Data has been saved' TO lt_text.
CALL METHOD l_window_manager->create_popup_to_confirm
EXPORTING
text = lt_text
button_kind = if_wd_window=>co_buttons_ok
default_button = if_wd_window=>co_button_ok
RECEIVING
result = mr_popup_window.
associated the action handling methods with the window
DATA: view_controller TYPE REF TO if_wd_view_controller.
view_controller = wd_this->wd_get_api( ).
mr_popup_window->set_remove_on_close( abap_true ). CALL METHOD mr_popup_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'ON_SUCCESS_OK'
action_view = view_controller.
mr_popup_window->open( ).
Code for OK button action of POPUP window: Here Im calling the EXIT plug.
DATA: lr_ref TYPE REF TO ig_yics_userdefault,
lv_url TYPE string.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'YICS_HOMEPAGE'
IMPORTING
out_absolute_url = lv_url.
lr_ref = wd_this->get_yics_userdefault_ctr( ).
lr_ref->fire_go_exit_plg( url = lv_url ).
Regards,
Vijay.