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.

>Exit plugs do not work in a portal environment.
This is a good point that I feel silly for not remembering...
You can check if your application is running in the portal using the IF_WD_APPLICATION->GET_CLIENT_ENVIRONMENT method
  lo_api_componentcontroller = wd_this->wd_get_api( ).
  lo_api_application = lo_api_componentcontroller->get_application( ).
  l_client_environment = lo_ap_application->get_client_environment( ).
if it is - then you can use the IF_WD_PORTAL_INTEGRATION interface
lo_portal_integration = lo_api_componentcontroller->get_portal_manager( ).
and the you can use the IF_WD_PORTAL_INTEGRATION methods to navigate eg - NAVIGATE_ABSOLUTE
call method lo_portal_manager->navigate_absolute
    exporting
      navigation_target   = 'ROLES://portal_content/blah/test_URL'
      navigation_mode     = if_wd_portal_integration=>co_show_inplace
If you're navigating in the portal you should probably have iViews set up for the apps you are calling, but it is possible to create a pass-through iView which will redirect to a URL passed as a parameter.
[Setting the URL at Runtime - in URL iVIew|http://help.sap.com/saphelp_nw04/helpdata/en/45/85087d755d1f88e10000000a1553f6/frameset.htm]
  data lo_api_component  type ref to if_wd_component.
  data lo_portal_manager type ref to if_wd_portal_integration.
  data lt_params type wdy_key_value_list.
  data ls_param type wdy_key_value.
  lo_api_component = wd_comp_controller->wd_get_api( ).
  lo_portal_manager = lo_api_component->get_portal_manager( ).
  ls_param-key = 'forcedURL'.
  ls_param-value = 'http://www.google.com'.
  append ls_param to lt_params.
  call method lo_portal_manager->navigate_absolute
    exporting
      navigation_target   = 'ROLES://portal_content/blah/test_URL'
      navigation_mode     = if_wd_portal_integration=>co_show_inplace
      use_sap_launcher    = abap_false
      launcher_parameters = lt_params.
Hope this helps
Chris
Chris

Similar Messages

  • ReturnListener invocation when closing popup window with (X) Button

    When I use a bounded task flow in an inline-pop, when the user clicks on the upper right (X) button of the popup window, the ReturnListener
    is not invoked which needs to be called in my use case because I need to refresh the caller’s table displayed in the calling screen. Do you know if there is a way to invoke the ReturnListener method to be invoked in case of closing the dialog via (X) button on the top right? Or how to refresh(addPartialTrigger) the caller’s table in that case.
    This behavior is described in Andrejus following
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    Thanks for your feedback.
    Best Regards,
    JP

    Hi,
    We created our own region in popup system partly for that reason. You have to add a popupClosed client listener and send a custom event to the server to in turn call the returnListener. Sadly, it's really not simple to implement, so I cannot come up with a good solution for you. :(
    Regards,
    ~ Simon

  • When closing Popup Window it does not ask "discard data?" dialog

    We have a popup window to create/update a record. When we click on 'Close Window' on this popup window with unsaved changes it does NOT show the dialog popup - "The changes you have made to this page have not been saved. If you continue, the changes will be discarded. Do you wish to continue?"
    What do I need to do to ensure the dialog popup is shown so that the underlying VO/EO are left in a consistent state before closing the popup window?
    At the moment, if the user navigates to the popup window a second time in the same session the EO cache is retained and causes create to fail.
    Regards
    Firoz

    The message you are talking about is a Warn About Changes message and it shows only if the user tries to navigate away from the page page without committing/rollbacking the data.
    As far as Window close is concerned check whether the windows.close() could be handled using Javascripts. As far as OA framework is concerned I would recommend you do not retain the AM while the pop up window is opened. This way no data from previous popup would be available. Just make sure that you pass sufficient parameters to initialize the popup everytime.
    Regards

  • Custom pushbutton in ME21N should display a popup window with item details

    Hello,,
    The requirement is to
    1. Add a custom pushbutton in ME21N screen at header level.
    2. The user will select some PO line items and will click on this push button.
        This inturn should trigger a popup window with item details only for those selected PO line items along with schedule line qty.
    I have created the custom push button in a custom tab using the BADI ME_GUI_PO_CUST.
    Now I am not able to retrieve item details and schedule line details inside the PAI of the custom tab..
    i.e., when i click on the custom push button, I am not able to retrive the item data and schedule line data.
    Please help me to retrive PO line item data and schedule line data.
    Regards,
    Sharah

    JSF is not so relevant in this question. It's all about how the generated client side code look like. Which is usually a bunch of HTML/CSS/JS (open page in browser, rightclick and view source). If you know HTML, you should know that using target="_blank" in a <form> or <a> element would open a new window. If you know JS, you should know that using window.open() would open a new window.
    Apply this so in the JSF source code so that the generated HTML/JS output is exactly what you want.

  • Popup windows with annotation

    When I click on an annotation, a litle popup windows is coming in the middle of the screen. Does it exit a way (preferences) to make this popup window to fit the entire screen (easier to read the text inside the popup windows with th vertical scroll bar).

    There is really no way to expand this popup ?
    Because on a PC, Adobe Reader is taking care of the dimensions I gave to this popup.
    I use QuickPdf library to do that. The command is :
    int QuickPDFAddNoteAnnotation(int InstanceID, double Left, double Top,
    int AnnotType, double PopupLeft, double PopupTop,
    double PopupWidth, double PopupHeight, wchar_t * Title,
    wchar_t * Contents, double Red, double Green, double Blue,
    int Open)
    Parameters
    Left The horizontal co-ordinate of the anchor for the annotation
    Top The vertical co-ordinate of the anchor for the annotation
    AnnotType The annotation type:
    0 = Note
    1 = Comment
    2 = Help
    3 = Insert
    4 = Key
    5 = New paragraph
    6 = Paragraph
    Add 100 to any of the above values to suppress the date shown in the popup
    annotation's title
    PopupLeft The horizontal co-ordinate of the left edge of the popup window
    PopupTop The vertical co-ordinate of the left edge of the popup window
    PopupWidth The width of the popup window
    PopupHeight The height of the popup window
    Title The title of the annotation
    Contents The body of the popup annotation
    Red The red component of the color of the annotation
    Green The green component of the color of the annotation
    Blue The blue component of the color of the annotation
    Open Specifies whether to show the annotation when the document is opened:
    0 = hide
    1 = show
    Unfortunatly the Android Adobe reader doesn't take care of theses values and put the popup windows in the middle of the screen
    It's very difficult to read the text on an galaxy SII : too small
    Thanks

  • I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' it won't go away-'delete' is greyed out-can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

  • I accidently closed my window with all my app tabs, now the only window that opens was a 2nd one I had open. How do I get back all my app tabs from the previous window, and why didn't it give me the usual warning you are closing more than one tab?

    I accidently closed the window with all my frequently used app tabs, now the only window that opens was an extra one I had opened. How do I get back all my app tabs from the previous window, and why didn't it give me the usual warning you are closing more than one tab? edit
    Details

    Then the (App) tabs from that window are lost unless you can restore an older copy of the sessionstore.js file (Time Machine?) that has that lost window.
    *http://kb.mozillazine.org/sessionstore.js

  • Popup window with radio button-urgent

    Hi..
    Is ther any functionmodule for dispalying a popup window with radio button ....

    Use This
    K_KKB_POPUP_RADIO2
    I_TITLE   ...                      This is the title                       
    I_TEXT1   ...                      first radio button                      
    I_TEXT2    ...                     second radio button                     
    I_DEFAULT     ...                  default                     
    reward if useful
    Amit Singla

  • When closing 2 windows(with multiple tabs each), system restore does not properly restore the second window's tabs. Is this a bug in the new update/any ideas to fix?

    I regularly use 2 windows with multiple tabs each and session restore would work to get them all back, but after this latest update the second window does not restore properly, with the first tab not visible on top(only in drop down menu) and the add a tab button now on the left(instead of right). The add a tab button is not really concerning other than it indicates other problems with the tabs on tab of the 2nd window. Not having the 1st tab visible is frustrating, because I can not move it or as easily navigate. Also, the tabs on top of the 2nd window that are visible no longer have the "x" to close visible unless that tab is selected. I'm assuming this is a problem with the new release/update, since this is the first time I've ever encountered the problem, and I've shut down and restored Firefox a few times to make sure this was a recurring problem and not a one-time deal. Any ideas on how to fix would be welcome(other than perhaps cramming my tabs onto one window or sucking it up XD).

    Hi,
    You can try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' in the [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen.
    If the problem persists, please try a [https://support.mozilla.org/en-US/kb/Managing-profiles?s=profile&r=0&e=sph&as=s new profile]. You can later copy [https://support.mozilla.org/en-US/kb/Backing%20up%20your%20information?s=backup&r=1&e=sph&as=s needed data] from the old profile to this.
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]

  • ABAP Web Dynpro Window Inactive After Closing Popup Window

    Hello ABAP'ers
    I have a custom ABAP Web dynpro applications that uses multiple tiers of popup windows.  This application was functioning properly in our ECC6.0, Basis release 7.00 Service level 15 environment.  However, we are currently installing EHP4 and moving or basis release to 7.01 service level 5. In this new environment, when multiple popup window tiers are closed simultaneously, the underlining window is not re-activated.
    Here's a more specific description:
    The application starts with a control panel window presenting a series of buttons.  Selecting one of these buttons activates a modal (I know... all web dynpro popups are modal) popup window for the purpose of maintaining some object.  If the user attempts to exit this window without saving the changes, another popup window appears asking if they want to save their changes.  If they say no, both the popup window asking the question and the popup maintenance window are closed, thus returning the user to the switchboard.
    The problem is that none of the functionality on the switchboard is active. the user must manually refresh the URL to "reactivate" the switchboard. 
    When only a single popup window is closed, the underlying window is properly reactivated.  The problem only occurs when multiple popups are closed together.
    Has anybody else seen this occur? Any ideas / notes around to correct it?
    Any info is greatly appreciated.
    R/
    Jim M

    Hello Jim, hello everyone,
    I am encountering the same issue.
    Is a solution known already?
    Thanks
    Johannes

  • Safari on Lion will not allow popup windows to return data to the website

    I have a web-based application that uses pop-up windows to capture certain user changes. One example is the user changing the default number of hours to a new specific number. The problem is that with Safari on Lion, the data does not get returned to the website.
    I have tested this function with Windows and IE, Firefox, Chrome, and Safari with no problem. I have tested it with my Macbook system running Snow Leopard and Safari, with no problem. I have tested it with my Macbook and Firefox with no problem. I've used the Firefox Firebug debugging tool with no errors found.
    Debugging has proven that the data is being captured by the popup, and it is assigned to the returnValue. However, the website never receives that data - the object is empty. This error is happening with every popup I've tried in the system covering a wide range of uses.
    The only thing I have found that fixes/masks the problem is turning on the Developer menu in Safari, and then starting Javascript debugging. In that mode the problem does not occur, but I can't find any errors to fix.
    It seems as if there is some change in Lion that affects the security of popup windows and returned data, but an internet search turns up no similar complaints. I have been able to reproduce the error on 3 different Macs running Lion.
    I have verified that pop-up windows are not blocked, and java and javascript are enabled. I've also compared the settings on my system with the failing systems and find no Safari settings that make any difference. I've tried all the simple things like system reboots, safari resets, and cookie cleaning.
    I would appreciate any ideas or information that might help. I am an experienced developer but relatively new to Mac's.
    Here is the code that calls the popup and waits for the returned data :
    if (window.showModalDialog)
    retVal = window.showModalDialog(templink, "name", "dialogWidth:275px;dialogHeight:350px");
    else
    retVal = window.open(templink, "name", "height=350, width=275,toolbar=no, directories=no, status=no, menubar=no, scrollbars=no,resizable=no, modal=yes");
    if (retVal == 'cancel')
    return;
    else {
    frmnewhrs.lid.value = tempid;
    frmnewhrs.newhrs.value = retVal;
    frmnewhrs.submit(); }
    This is the code in the popup that captures and sends the new data :
    function preSaveCheck() {
    var tempstr = document.getElementById("newhrs").value;
    if (tempstr.length > 0) {
    window.returnValue = tempstr;
    window.close();}
    Thanks, Dave

    Anti virus software installed on the Macs?
    Using a router with a Firewall?

  • Load page in popup window with different (from parent page) browser

    Hi,
    Environment: Windows XP or Windows 7, Visual Studio 2010, Internet Explorer 8 (IE)
    I have an application which opens page containing HTML editor.  Here you can edit a document (pooled from db). Next, btnPreview opens a new popup window and shows changes you made via Internet Explorer (IE - default browser).
    Here is original code - works OK when you run from both - VS 2010 (http://localhost:50827/NCSite/MenuEditor.aspx) or via browser IE (http://localhost/NCSite/MenuEditor.aspx).
    Please pay attention - with VS2010 was used a dynamic address (localhost:50827) created by VS2010
    Here is a code I used for that:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    ClientScriptManager cs = Page.ClientScript;
    cs.RegisterStartupScript(this.GetType(),
    "NewWindow",
    "<script>window.open('" + URL +
    "', 'New')</script>");
    Now I have a request to add two more buttons to preview in Google Chrome (GC) and Mozilla Firefox (FF).
    I used next code:
    using System.Diagnostics;
    //for btnIE:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    Process.Start("iexplore",
    URL);
    //for btnGC:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("chrome",
    URL);
    //for btnFF:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("firefox",
    URL);
    It works OK when you run from VS2010 (http://localhost:50827/NCSite/MenuEditor.aspx)
    but when you open application via default browser (IE) and after editing document press btnIE, btnGC, or btnFF it is not creating a new popup window and simply replacing existing window
    and shows updated document via IE.  Processes for GC and FF not even started (looked through Task Manager).
    Is it any way to solve that issue?
    Thanks,
    Dm
    dmirkin

    Hi dmirkin,
    If Andy's suggestion still cann't resovle your issue.
    You are more likely to get more efficient responses to
    ASP.NET issues at http://forums.asp.net where you can contact ASP.NET
    JavaScript experts. This forum is for web application.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Af:commandLink not launching popup window

    Hi,
    I have an af:commandLink inside page1.jspx, when clicked is launching a popup window and inside it page2.jspx is displayed.
    The code is as follows:
    <af:commandLink text="Link Text" id="cl1" action="openPopup" windowHeight="600" windowWidth="700" useWindow="true" partialSubmit="true" returnListener="#{viewScope.backingBean.returnFromPopup}" />
    "openPopup" action is set in adfc-config.xml "From Activity ID" = "page1.jspx" and "To Activity ID" = "page2.jspx".
    The application containing the two pages can be accessed via URL1 and URL2 (same application just the URLs are different - URL1 is not using SSO, we use it for quick access, URL2 is using SSO to grant acces to the app).
    The issue with this simple use-case is that using URL1 (no SSO), everything works ok, but using URL2 (with SSO) the commandLink sometimes loads the popup window, but the majority of time it doesn't, even if the browser's popup blocker is disabled - could not find a pattern or a way to reproduce (tested on Firefox and Chrome, same results). I noticed on the FireBug console on URL2 that a POST call to server is issued when clicking the commandLink, but nothing happens, popup window is not showing up. Same call is issued on URL1, and the popup window is launched and everything works as expected.
    I'm using jDev 11.1.2.2.0 and Firefox 10.0.7, Chrome 26.0.1410.64 m.
    Any clues on why is this happening?
    Thanks a lot in advance,
    Iulian

    Hi,
    have you tried if there is a difference in the behavior if the session previously has been SSO authenticated or not?
    Frank

  • Close a popup window with a custom button

    Hi All,
    I have two components A and B.
    I will call one of the view of B in A as a pop up
    Component A
    Component B
    as popup
    BTN
    Pressing of BTN which is a custom button created in component B must close the popup screen(Exit Component B).
    I have tryied using Exit outbound plug in the corresponding window of Component B, but still it is not closing.
    Can any one help me to solve this problem?

    OK here is the logic for the second option..
    1. create a node in the component controller of the component B. make it interface node. ( say its name as WIN_NODE)
    2. create an attribute there of type (type ref to IF_WD_WINDOW)   (name as WIN)
    3. create the same node in the view where you have the close button (custom close button). map it to the component controller
          node.
    then the same node will be present in the interface controller
            view                         component controller                      interface controller
          WIN_NODE-->WIN_NODE--
    >WIN_NODE
              WIN-->WIN--
    >WIN
    now go to the component A,
    there you must have declared component B as the used component.
    4.go the view which fires the window creation .
    5. there go to the properties tab and add the interface controller or Component B as used controller.
    6. After that go to context tab and create a node WIN_node having attribute WIN there also.
    7. Map it to the node of interface controller of component B.
    8. Now the coding part.
    a.)   in the component A which fires the event of opening the window, write the following code in the event handler.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window_for_cmp_usage(
                       interface_view_name    = 'WIN2'
                       component_usage_name   = 'TEST'
    *                  title                  =
                       close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
      DATA lo_nd_win_node TYPE REF TO if_wd_context_node.
      DATA lo_el_win_node TYPE REF TO if_wd_context_element.
      DATA ls_win_node TYPE wd_this->element_win_node.
      DATA lv_win LIKE ls_win_node-win.
    * navigate from <CONTEXT> to <WIN_NODE> via lead selection
      lo_nd_win_node = wd_context->get_child_node( name = wd_this->wdctx_win_node ).
    * get single attribute
      lo_nd_win_node->set_attribute(
        EXPORTING
          name =  `WIN`
          value = lo_window ).
    lo_window->open( ).
    you might be already having the code for opening and creating the window add the logic for passing the window instance to
    context there as shown above.
    b) in the context B fetch the window instance in the eventhandler of the close button and close it.
    DATA lo_nd_win_node TYPE REF TO if_wd_context_node.
        DATA lo_el_win_node TYPE REF TO if_wd_context_element.
        DATA ls_win_node TYPE wd_this->element_win_node.
        DATA lv_win LIKE ls_win_node-win.
    *   navigate from <CONTEXT> to <WIN_NODE> via lead selection
        lo_nd_win_node = wd_context->get_child_node( name = wd_this->wdctx_win_node ).
    *   get element via lead selection
        lo_el_win_node = lo_nd_win_node->get_element(  ).
    *   get single attribute
        lo_el_win_node->get_attribute(
          EXPORTING
            name =  `WIN`
          IMPORTING
            value = lv_win ).
    lv_win->close( ).
    thanks
    Sarbjeet singh

  • Popup Window with coordinates from Browser

    Hi
    I have a problem with the popup window display.
    My requirement is:
    I have a flex application ,with height=200,width=200, which
    is occupying small amount of the browser window space.
    In the application, when i click on a button a new popup
    window is to be created with height=700 and width=700.
    I created the samething.
    But the problem is, the popup is displaying(overlaying)
    within the flex application area, where the full screen of the
    popup window will not be shown. bcoz the flex application is having
    only 200 Height & 200 Width.
    I want to have something like the popup window should be
    displayed with browser coordinates and overlayed on the browser
    window.
    Can anybody suggest me how to get this...
    I appreciate the help.
    thanks
    KVS

    You would have to open a new browser window by hitting
    another html page with a different SWF file in the html. I think
    that would be the easiest way.

Maybe you are looking for

  • Add a new attribute.

    I would like to add a new attribute to the membership.xml, what can i do to create the new attribute in the directory server and then add it to the form of autoregister?

  • CD/DVD drive won't read media

    I just bought a Power Mac G4 Quicksilver from a friend (I'm new to this) and she said that the CD/DVD drive sometimes has problems reading discs. She also said that a friend of hers told her that all it needed was a new "drive reader" which would onl

  • To make the query more efficient (create table wiht select command)

    Hi, I have written this query to create another table, but it takes approx two hours while both tables are indexed with 891353, 769023, i have used the following query. create table source1 as select a.idx, a.source from tt a where a.idx not in (sele

  • How to best get rid of old ipod?

    I have a 3rd generation ipod. It doesn't work and all I want to do is just get rid of it. I already have a new ipod so I don't want/need to trade it in. I would like to know the best way to recycle/throw away my old ipod.

  • Transaction PZLE_01, PZLE_02 ......PZLE_05

    Hi Experts, When I execute the the transactions PZLE_01 I get screen for Who'sWho. I am confussed why this is happening. PS: To tun transaction PZLE_01. First run some other transaction, say SE24 and now run /NPZLE_01. Other issue I am facing even wh