Closing the PopUp

Dear Experts,
I am calling a custom component as a pop up with table view.
I want to close the popup when the user choose any row in the table .(no buttons)
Searched forum.. though there are some posting.. I could not understand ..
Can anyone please guide me .
Regards,
Roopas

Hi,
I think you can define an event when line is selected and in this link call the outbound plug of the window.
Try to use the method set_on_close in your popup.
Best regards,
Caíque Escaler

Similar Messages

  • 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

  • Refresh the table after closing the Popup iView

    Hi all,
    I have list of survey in my table. In that table i have toolbar button(DELETE) for deleting the survey. While deleting the survey it asks the confirmation. If we click Ok it delete the selected survey and close the popup also. what I want is I should refresh the table after closing the Popup.How can i achieve this?
    Help me in this regard.
    Thanks & Regards,
    Hemalatha J

    Hi Hema,
    Check this link.
    Visual Composer - You can do anything....
    In this blog, they are used 'Refresh' Button and a Hidden 'Plain text' message to solve this problem. If you are satisfy with this you can take this solution.
    Or you can try to trigger the 'Submit' action of 'Input form' once again from the 'Popup window' when the 'Delete' button is clicked.
    Hope it helps...
    Regards
    Basheer
    Edited by: Basheer on Dec 23, 2008 8:03 PM

  • ComboBoxPopup - what listener is closing the popup?

    Hi,
    I am looking at the ComboBoxPopup...and I am trying to figure out which listener is causing the popup to be hidden when I click somewhere in the popup.
    I have modified the ScrollPane to use my own JPanel instead of a Jlist....so I know its not the list handlers..
    anyone have an idea?
    thanks

    In BasicComboPopup, look for this line:
    protected class ListMouseHandler extends MouseAdapter {
    "This listener hides the popup when the mouse is released in the list."
    Also,:
    protected class InvocationMouseHandler extends MouseAdapter {
    And in BasicComboBoxUI:
    public class FocusHandler implements FocusListener {
    The "setPopupVisible()" calls.

  • 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

  • Closing the browser without popup message

    Hi Experts,
    I refered the following thread and done the below steps
    1.Create a Button called Exit.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code:
    String Url;
    try {
    Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
    wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
    4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
    5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
    I have used Ie 7.0
    My questin is when i clicking the button. It show popup message like
    "Do you want to close this window " I don't want this popup.
    without popup i need to close this window? How to do that?
    Regards,
    Manivannan P

    Hi Manivannan p,
    1.Create a Button called Close.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code
    You can try this
    public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
    WDPortalEventing.fire("urn:com.sapportals:navigation", "CloseWindow", "");
    //@@end
    This will help you closing the window with out Popup
    Here we are calling a "Portal Event" called " CloseWindow" to close the windoe
    Get back if you have any questions
    Thanks & Regards
    Swetha

  • Firefox opens all the popup windows closed last time

    I open Firefox. Then a window and then tabs. Now some of the sites like bank sites open popups, sometimes more than one, to let users login. Also some of the sites like Opensubtitles.org open Ad popups. So it becomes numerous pop-ups even if the browsing duration is as short as 1 hour.
    I simply click those popup windows by clicking on the X button. There's no File->Exit and neither is there a File->Exit for the parent tab unless I want to exit from the Firefox itslef.
    So, after I close final/last tab of Firefox and eventually exit, then most of the times when I reopen Firefox it opens all the popups I had opened again. Even if the last tab to be closed was entirely unrelated to any of those pop-up windows or parent tabs.

    Make that "Firefox ->Preferences -> General -> When Firefox starts: "Show my windows and tabs from last time" is not selected as this is not the default.
    Basically this setting will make Firefox start with whatever windows and tabs that were last open when a user closes Firefox by way of File ->Quit/Exit as if Firefox was never closed.

  • Closing the browser in InfoView doesn't log the user off.

    In Business Objects XI R2 Infoview, closing the browser in InfoView doesn't log the user off no matter how you answer the subsequent popup question "A window has closed. Log off as well?" Is there a fix for this somewhere?

    hi,
    In InfoView, with Performance Management installed, user sessions fail to be released immediately when the Log Off button is clicked.
    If you click the logoff button in Infoview and watch the address bar you will notice that it actually goes to another page called default.htm. It does this really fast. That page is located at C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView. Remove both the default.htm and index.html and reboot your Tomcat server. Open a browser and go to Infoview. Once you have gotten in to Infoview click the log off button. You will get and error from the tomcat server and that is because the page does not exist anymore. If you look in CMS under servers and CMS you will also notice it dropped the session as well. So if you create another Default.htm page of your own and just redirect to another page it all should work.
    However I did notice an interesting ADAPT in CHF15 :-
    http://support.businessobjects.com/CommunityCS/FilesAndUpdates/boxir2_en_chf15_readme.pdf
    ADAPT00576483 Patch ID: 39,216,665
    Also did u do any customization setting before ?

  • Programmatically closing a popup from a managed bean

    Hi,
    in the following blog [http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/|http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/]
    the following statement is being made at the end ...
    The JavaScript call is issued as "window.exitPopup()" because the script is called from the page root. You can easily see how the JavaScript can be modified to have "exitPopup" becoming a generic function avoiding hard coded popup ID's as in my example.
    I don't understand how to avoid hardcoded popup ID's. Could someone please explain this to me.
    Thank you
    Bodhy

    Hi,
    thank you. It is working.
    @Timo
    The closePopup function in your comment has the variable popupId. That made me wonder, if it is possible to set this variable in my jspx page.
    I made a workaround by defining a new variable called popupId with getter and setter methods and using the setActionListener to set that popupId. After that I was calling the closePopup() function. Do you know a better way doing this?
    @Frank
    I was also reading through Frank's blog about JavaScript [http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/|http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/] , trying to find a solution to call JavaScript functions with variables (defining these variables in my jsp page). Is this possible?
    Thank you
    Bodhy

  • 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.

  • How do I block a popup window that I have allowed to open on Firefox once? I now have the popup blocker set to block all sites, but the popup still opens every time I open Firefox or open (sometimes) a new tab.

    How do I block a popup? I allowed this popup to open once. Now I have set the popup blocker to block all sites but this popup still opens every time I open Firefox and sometimes (usually) when I open a new tab.
    I Have stopped and restarted Firefox multiple times.
    I have rebooted the computer.
    I have set the tools/options/content/block pop-up windows/exceptions to block all sites (no exceptions).
    I have no other issues with Firefox.
    I have Adblock plus (with (1) subscription) installed
    I am currently using Firefox version 4.0 on Windows7 Ultimate.

    Just to address the last point: check your History menu to see whether you have the Restore Previous Session option and use that if you can. If that is grayed out or doesn't restore everything, check the Recently Closed Windows and Recently Closed Tabs lists for other pages.
    The unwanted window may be generated by an add-on. Try disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Here are some other things to check:
    (1) user.js file that changes Firefox startup behavior and overrides your preferences. This article describes how to track that down and delete it if you have one: [[How to fix preferences that won't save]].
    (2) Possible hijacked shortcut. Check the "target" of the desktop icon you use to start Firefox to see whether it lists the unwanted page. To do that:
    right-click the icon > Properties > Shortcut tab
    For 64-bit Windows 7, the Target should be no more and no less than this:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    (3) Possible undisclosed bundle items. If you have installed any free software recently, check your Windows Control Panel, Uninstall a program for surprises. If you click the "Installed on" column head to group by date, it is easier to spot bundled junk. Remove everything suspicious or unrecognized.
    (4) Supplemental clean up scans. Our support article lists tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that cures it.

  • Datepicker on custom popup page close the popup page when date is selected

    Hi
    I have created a custom popup page according to the "How-To": Build Custom Popup Pages in Oracle Application Express. http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    I have changed one of the search fields to a date and use the datepicker.
    When running the custom popup page from a simple form page, and select a date with the datepicker, the custom popup page is closed, and I return to the form page.
    How do I prevent the popup page to be closed, when date is selected ?
    BR Klaus

    Is there a way to control the javascript in the
    standard datepicker.No.
    Why would you want the builtin date picker window to hang around after the user selects a date?

  • Closing a popup

    Hi All,
    I have created a popup on jspx page. Popup will be called on click of richCommandLink.
    ClientListenerSet set = richCommandLink.getClientListeners();
    set.addBehavior("new AdfShowPopupBehavior('myPopup',AdfRichPopup.ALIGN_AFTER_END,null,'click')");
    there are some buttons inside the popup which are also created dynamically.
    RichCommandButton clb = new RichCommandButton();
    clb = (RichCommandButton)RichCommandComponentUtils.addActionListener(clb,"#{RecommendationBean.actionButtonMethod}");
    the actionlistener method is also getting called properly. But the popup is not getting closed. (Ideally it should get closed when the user clicks on any of the button inside it)
    How is this case to be handled?
    Regards,
    ND
    Edited by: ND on Oct 27, 2010 12:40 PM

    Hi,
    if you are on JDeveloper 11.1.1.3, get a handle to the RichPopup instace and call hide() on it when the button is pressed. Note that in this release you can also use Java to launch the popup so you don't have to add a client side showPopup behavior
    Frank
    Ps.: Note that AdfShowPopupBheavior is an internal class (http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12046/oracle/adfinternal/view/js/behavior/AdfShowPopupBehavior.html) which we don't recommend using in custom applications. Esepecially for
    opening a popup, there are enough options available using JDeveloper 11.1.1.3
    Edited by: Frank Nimphius on Oct 28, 2010 8:29 AM

  • Why can't i open pop up's i asked firefox to allow the popup and even went in and turned off pop up blocker but it still fails to let me see what i'm going for

    i need to see an item in the walker exhaust website . and when i click on the picture to have it go larger i get the drop down across the top that said popup blocked. i went in and asked for the popup and nothing. i then went in and turned it off and closed the option page and tried again and nothing still will not allow it. i have had this problem before and getting tired of it. i almost would rather close the popup's than to not get the ones i need to see.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • About the popup window created by if_wd_window_manager- create_window

    hi,experts
    i want to put out a pdf file in popup window.and use method create_windos of if_wd_window_manager to get it.then i find a question: i at least click twice to close the window....why? what modification i need to implement that  the window close as soon as i click the "CLOSE" button once. i guess that is normal.
    the original codes is as follows:
      data: lr_view               type ref to if_wd_view_controller,
            lr_api_main           type ref to if_wd_component,
            lr_window_man         type ref to if_wd_window_manager,
            comp_usage            type ref to if_wd_component_usage,
            l_title                   type string value 'print the contract'.
            lr_window              type ref to if_wd_window.
      lr_view = wd_this->wd_get_api( ).
      lr_api_main = wd_comp_controller->wd_get_api( ).
      lr_window_man = lr_api_main->get_window_manager( ).
    l_title = wd_comp_controller->model->get_text( '006' ).
      call method lr_window_man->create_window
        exporting
          modal        = abap_true
          window_name  = 'POPUP'
          title        = l_title
          close_button = abap_on
         BUTTON_KIND  = '1'
         default_button = '5'
        receiving
          window       = lr_window.
      lr_window->open( ).
    thanks..looking forwards to your help!

    hi ,Sajid
    1.
    data l_api_v_new_assignment type ref to if_wd_view_controller.
      l_api_v_new_assignment = wd_this->wd_get_api( ).
      data window_controller type ref to if_wd_window_controller.
      window_controller = l_api_v_new_assignment->get_embedding_window_ctlr( ).
      data window type ref to if_wd_window.
      window = window_controller->get_window( ).
      window->close( ).
    to your first option.   my codes are written  in a view of the main windows and the popup window is another, so can't get the exact window.. so there is a dump error after i test this one.
    iF MO_POPUP TYPE REF TO IF_WD_WINDOW, IS AN ATRIBUTE DEFINED IN COMPONENT CONTROLLER
    and in popup_method this is the coding related for opening popup .
    DATA:lo_api TYPE REF TO if_wd_component,
    lo_win_manager TYPE REF TO if_wd_window_manager,
    lo_api = wd_this->wd_get_api( ).
    lo_win_manager = lo_api->get_window_manager( )
    wd_this->mo_popup = lo_win_manager->create_window(
    title = 'xyz'
    window_name = 'WINDOW NAME'
    button_kind = if_wd_window=>co_buttons_okcancel
    message_type = if_wd_window=>co_msg_type_warning ).
    wd_comp_controller->mo_popup->open( ).
    Then for closing pop up on event handler method of no write the following coding
    wd_comp_controller->mo_popup->close( ).
    to second one...  i think  this part of codes are the same as mine except the last sectence...... and i add the last sentence in my coding but nothing sepecial happend...
    looking forward for more helps...thanks a lot

Maybe you are looking for

  • Noob question: Casting and coverting

    I thought I completely had my head around this before, but now I wonder if I do... I know that for: class citrus { void squeeze() {citrus juice} AND class orange extends citrus { void squeeze() {orange juice} citrus C = new orance(); C.squeeze will g

  • Migration Assistant not recognizing other Mac via FireWire

    I am trying to transfer files from my G4 Mirror Doors Power Mac to my new Intel iMac via the instructions that come up on the new iMac. I am running the latest version of 10.4 on the G4. I have the two machines connected via FireWire. I restarted the

  • How can I stop or delete a movie purchase download that is stalled?

    How an I stop a movie purchase download from iTunes that is stalled?  I apparently do not have enough storage capacity...but it keeps trying to download.

  • T61 display idle timer doesn't save

    Thinkpad T61P Windows 7 x64 I use a custom plan for PowerManager.  Each time I boot, the idle timer for "Turn off Display" is set to 5min/20min (battery/AC).  I bring up Power Manager, change them to never/never, and hit the OK button.  The display w

  • Can't transfer video in video section of iPod!

    Hi guys, I converted a music concert to H.264 mp4 using Instant HandBrake program. I imported into iPod but it loaded into Movies section and not Video. When I played it back, it kept stopping. Can someone please tell me how I can import it into the