Skip to Content
author's profile photo Former Member
Former Member

Not closing popup window with firing Exitplug

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 19, 2010 at 03:06 AM

    Does it help if you close the popup window explicitly?

    in your event handler:

    mr_popup_window->close( ).
    

    before you fire the application exit plug?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 07, 2011 at 04:49 PM

    Hi

    Could you update the results of GET_CLIENT_ENVIRONMENT and GET_APPLICATION_INFO and the actual code .

    How did you achive the solution in portal. kindly provide the method with code.

    Thanks in advance!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.