New feature in SP5: Closing a popup window raises an event

I'm trying to use this new feature that came in SP5, "Popup Enhancement - Closing a popup window raises an event to the containing iView".  Can anyone give me an example of how this works?  In the configure element for the popup, there is a new field called, 'Closure Event'.  I though by adding by event to this new field, that the event will be raised after closing the popup window, but it didn't.  What am I doing wrong?

Hi,
you should add an end-point to the popup and/or use the "Close" action.
there's a difference between when closing the popup implicitly or explicitly

Similar Messages

  • Dynamic Action on "Get Focus" After Closing a Popup Window

    Hi,
    From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
    How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
    Any pointers will be greatly appreciated.
    Thanks & Regards,
    Ashish Agarwal
    http://www.asagarwal.com

    Assuming that you have a dynamic action in the parent page which refreshes the region
    <li> Make a note of the event which triggers your dynamic action, lets call this event A.
    <li> Create a JS function in parent page which triggers event A when called.
    For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
    Your JS function could be
    function Trigger_refreshRegion()
      $('#P100_REFRESH').click();
    The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
    <li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
    just call the parent page's refresh JS function there using the
      opener.Trigger_refreshRegion(); //whatever was the name of the function that you created.

  • Disable Collaboration Features coming up in the popup window for somegroups

    Hi,
    How can I disable the Collaboration Features
    (Send Email,Create Appointment,Send InstantMessage,CreateTask etc )
    that come up in the popup window whn we click on the link provided just after user name. I know how it is to be done for all users. But I want it deactivate for certain groups only.
    Regards
    MK

    You need to configure command groups.
    Use following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/98/dd48a9b4a197489a54187c99372bce/frameset.htm
    Regards
    Prabhakar Lal

  • To Disable the Collaboration Features coming up in the popup window

    Hi,
    Can some one tell me how I can disable the Collaboration Features ( Send Email,Create Appointment,Send InstantMessage,CreateTask etc ) that come up in the popup window whn we click on the link provided just after user name .
    I dont want to get the link to be displayed next to user name  as we aren't implementing the Collaboration feature in our Portal here
    Regards
    Nazeer

    Hi
    You can remove the context menu popup by doing this:
    Login to portal as admin
    Follow  system admin-->sysconfigratrion --> coloabration -->properties -->command group -->users group -->edit --> remove
       UserGWGroup
       UserSyncGroup
       UserAsyncGroup
       UserWorkflowGroup.
    This way all the menu will be removed.
    Best Regards
    Prabhakar Lal
    PS : You may have to restart the server to see the changes.
    Message was edited by:
            Prabhakar Lal

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • InputListofValue PopUp window CANCEL button event capture ?

    HI All ,
    Jdeveloper version 11.X.6.
    i have explained the outline of issue below:
    User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on below fields.
    but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
    is there any way to remove the old data on InpuLIstOfValue Filed ?
    Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
    PLase let us know if any hints ?
    Thanks

    Step by step:
    1. Create the converter class:
    package view.converters;
    import java.util.Collection;
    import java.util.Collections;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import org.apache.myfaces.trinidad.convert.ClientConverter;
    import org.apache.commons.lang.StringUtils;
    public class LOVConverter implements Converter, ClientConverter {
      public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
        if (StringUtils.isBlank(value)) {
          // cancel event was triggered, so do something
        return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
      public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
        if (value == null || /* value is empty in its primary type */) {
          // cancel event was triggered, so do something
        return value.toString();
      public String getClientLibrarySource(FacesContext facesContext)
        return null;
      public Collection<String> getClientImportNames()
        return Collections.emptySet();
      public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
        return null;
      public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
        return null;
    }2. Declare the converter in faces-config.xml:
    <converter>
      <converter-id>LOVConverter</converter-id>
      <converter-class>view.converters.LOVConverter</converter-class>
    </converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
    <af:inputListOfValues popupTitle="Search"
                          value="#{row.bindings.DepartmentId.inputValue}"
                          model="#{row.bindings.DepartmentId.listOfValuesModel}"
                          required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
                          columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
                          shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                          converter="LOVConverter"
                          id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
    AP

  • 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

  • Message (of message manager) gets lost by opening a popup window

    Hi all,
    On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
    Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
    Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
    Other any good ideas?
    Thanks,
    Stefan

    Hi Stefan
    Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
    If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
    Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
    Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
    BR, Sergei

  • Problem in Popup Window in OAF

    Hi,
    We are populating a table results page in OAF based on the search items. In the Results table, we have a link(to a new page that has only one table region) on a column(itemstyle: link) so that it should open in a popup modal window. On closing the same, I should be able to conduct a new search.
    But what happens here is, after closing the popup window, we are not able to conduct a new search on the same page; the Result table is populated based on the previous search values (that is the master page still holds the old search values and when Go button is clicked the results based on the previous values would be displayed). Even if I click ‘Go’ button, the process form request method is not being called. Also the firePartial actions such as making a field mandatory are not working. This happens only after opening the link & closing the popup window. If we do not click to open the pop up window, we are able to make n number of searches.
    The link to open the popup window is:
    javascript:openWindow(top,'OA.jsp?page=/ikn/oracle/apps/ak/webinv/webui/SearchCompPG&param1={@param1}&param2={@param2}&retainAM=N &addBreadCrumb=N', 'modal', {width:750, height:350},true, 'dialog', null);void(0);
    Please let me know the fix for this issue.
    Thanks in advance.

    Ah, the daily OAF post.
    There is an [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for these types of questions.
    Regards,
    John

  • Lifespan of popup window

    Hello!
    I want controller of a popup window be initialized every time when the window is opened. Is that possible?
    I've defined Lifespan for the view "when_visible", but doInit is called only first time, the window was opened.
    Of course, I could invalidate context on closing the window (as I manage to fire event, that the window can be closed), but may be there is a simple way to make lifespan working similar to "normal" views?
    Thank you!
    Best regards,
    Nick

    Hi Wael,
    I'm not pretty sure about terminology, I think I'm using "regular popup", though I'm doing similar things to Tutorial 10 "Dialog Boxes in Web Dynpro":
    - define a new window and a view in WD component
    - open the window using
         IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows(NAME);
         IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.open();
    - save the window instance in context of the current view
    - Define an event in controller
    - add event processor to the current view to close popup window by
           IWDWindow window = wdContext.currentContextElement().getPopupWindowInstance();
           window.close();
    - popup window triggers the event in controller and 'parent' view closes the popup.
    Best regards,
    Nick

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • How to close a Popup window in WebUI

    Hi gurus,
    I created a custom component and launched it in WebUI as a popup. Aside from closing the popup window (via pressing the little "X" on the upper right) or firing the outbound plug 'leave', is there another way to programmatically close the popup? I have several buttons there, all of them must close the popup and resume processing to the calling view. I want to be able to tell which button was pressed with as minimal coding logic as possible.
    Cheers,
    Marc

    Hi Marc,
    You could give your various buttons unique names. You could redefine the do_handle_event method of the impl class. In this you could direct all these events to one event handler itself. In this event handler,if you read the htmlb_event_ex parameter,this contains an attribute called event name.Here,you can distinguish which button has been clicked and then fire your outbound plug while passing a collection with button name in it.
    Regards,
    Sarat

  • How to close a popup window in a used component?

    Hi Experts,
    I have two applications in the same project, and they each have one component controller. Let they be component A and B. They have similar functionalities and screens. There is a popup window in A that I would like to use in B instead of creating a new popup window in B, so I added a used component of A in B in order to share the popup window. I am able to click a button in B to get a popup window from A successfully, but I am unable to close the popup window since the event has been created in A.
    Can anyone suggest me how to fix this please? I would really appreciate your help.
    Thanks,
    -Napadol

    Hi,
    You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
    Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
    This way you can do the same and have a code in Component B to close your window.
    Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
    Regards,
    Daniel

  • 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

  • How to Direct control to application's window after closing the popup?

    Hi,
    I am using 10.1.3. In my application I am unable to direct control to application's window after closing the popup, if I open any other window at the same time.
    For more info see the below step:-
    -> Open any popup in my application.
    -> Open any new window (lets say Google.com).
    -> Now restore popup on Google window.
    -> Now close popup
              - control goes to Google window but not the parent application window.
    How to direct control to the parent window?
    Can anybody help me regarding this?
    Thanx...Abhijit

    Hi Abhijit,
    You can do this using Javascript alone. Below are the two sample files I created.
    main.html_
    <html>
    <head>
      <title>Testing popup</title>
      <script type="text/javascript">
      function openPopup() {
        window.open("popup.html");
      </script>
    </head>
    <body>
      <a hr_ef="javascript:openPopup()">Open popup</a>
      <input id="something" name="something" type="text" value="something">
    </body>
    </html>
    Note: hr_ef should be href. The code tags are messing with the link.
    popup.html_
    <html>
    <head>
      <title>This is the popup window</title>
      <script type="text/javascript">
      function goToMain() {
        window.opener.something.focus();
      </script>
    </head>
    <body onunload="goToMain()">
      This is the popup window. Close this window to return to main window.
    </body>
    </html>The idea is to call a javascript function in the popup window that tries to focus on an object (eg. InputText) in the main html.
    Although, one point to take note is the naming of html objects by by these ADF UI Components. If you named your form id as "*form1*" and input text id as "*something*", your input text id will end up as "*form1:something*".
    Therefore, you will have to tweak the code above to the following:
    <script type="text/javascript">
    function goToMain() {
      window.opener.form1['form1:something'].focus();
    </script>Regards,
    Chan Kelwin

Maybe you are looking for