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

Similar Messages

  • How do I wake up Dell Inspiron 6400 after closing the lid? [SOLVED]

    I'm running Arch on a Dell Inspiron 6400 laptop (same as Inspiron e1505).  When I close the top to an angle of less than about 30 degrees, the machine goes into some kind of sleep state and Arch is suspended (black screen, no response to anything).  It may be easy to wake up Windows from such a condition but what must I do get Arch back and working, short of having to reboot?
    Last edited by RobF (2007-07-05 20:08:41)

    thayer.w wrote:
    RobF, it's hard to say, without knowing what your setup is... GNOME, KDE? Any power management software installed such as Powersaved or hibernation scripts? 
    If you're still having troubles with it, check out the Inspiron 6400 wiki I've been working on.  It includes step-by-step instructions on setting up hibernation/suspend features and I can verify it works on my own 6400.
    http://wiki.archlinux.org/index.php/Dell_Inspiron_6400
    I'm using KDE, and I haven't specifically installed any power management software aside from what came with the Arch base install and KDE.
    I went through your Dell Inspiron 6400 Wiki (great work! I'll add to it) and installed acpid and powersave and hoped to install kpowersave or kpowersave-devel but neither of these will compile.  kpowersave requires unsermake-svn but unsermake-svn will not compile because of the error: "unsermake-svn is not available for the 'i686' architecture," and: "Note that many packages may need a line added to their PKGBUILD such as arch=('i686')."  So much about that.
    Trying to build the package kpowersave-devel also aborts with the error:
    Checking for Qt... configure: error: Qt (>= Qt 3.2 and < 4.0) (headers an .....  r installation!
    For more details about this problem, look at the end of config.log.
    make: *** No targets specified and no makefile found.  Stop.
    ==> ERROR: Build Failed.  Aborting...
    So much about that.
    About kpowersave-devel, srabd commented a month ago: "It doesn't compile now, but compiles if you use unsermake instead of make in the two final lines."  Wonderful!  But as I reported above, "unsermake-svn is not available for the 'i686' architecture."
    I seem to be stuck.  Any ideas how I can get around this?
    Robert

  • How do I selectivly close the only not responding window (without closing the other 3 responding windows)

    Presently, I have 4 windows opened, each with a bunch of tabs.
    Since I restarted firefox this morning, one out these 4 windows, keeps on not displaying.
    How do I selectivly close this only window (without closing the 3 others windows)

    Here is what the manpage shows:
    [ps(1)|http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/p s.1.html]
    state The state is given by a sequence of letters, for example, ``RWNA''. The first letter indicates the run
    state of the process:
    I Marks a process that is idle (sleeping for longer than about 20 seconds).
    R Marks a runnable process.
    S Marks a process that is sleeping for less than about 20 seconds.
    T Marks a stopped process.
    U Marks a process in uninterruptible wait.
    Z Marks a dead process (a ``zombie'').
    Additional characters after these, if any, indicate additional state information:
    + The process is in the foreground process group of its control terminal.
    < The process has raised CPU scheduling priority.
    <div class="jive-quote"> The process has specified a soft limit on memory requirements and is currently exceeding that
    limit; such a process is (necessarily) not swapped.
    A the process has asked for random page replacement (VA_ANOM, from vadvise(2), for example,
    lisp(1) in a garbage collect).
    E The process is trying to exit.
    L The process has pages locked in core (for example, for raw I/O).
    N The process has reduced CPU scheduling priority (see setpriority(2)).
    S The process has asked for FIFO page replacement (VA_SEQL, from vadvise(2), for example, a large
    image processing program using virtual memory to sequentially address voluminous data).
    s The process is a session leader.
    V The process is suspended during a vfork.
    W The process is swapped out.
    X The process is being traced or debugged.

  • How to create a Child Window without closing the parent Window

    Hi All,
    I have a requirement to create a child window without closing the parent window. I have to click an item in the parent window, then one child window should get open. The parent window should not be closed before closing the child window.
    Kindly help me in this.
    Thanks and Regards,
    Myvizhi

    Hi All,
    I found the solution for this. I have created a new page. Then i created an item as link item style in the parent page and i have set the following properties in the Link item:
    Destination URI : OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S
    Target Frame     : _blank
    This is opening the new child window without closing the parent window.
    Thanks and Regards,
    Myvizhi

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • ITunes 10.5.3 restarts itself after closing the program. How do I fix this?

    iTunes 10.5.3 restarts itself after closing the program. How do I fix this?
    Windows 7 64bit Ultimate
    iTunes 10.5.3 64bit

    I've had this problem on my Windows XP for years. it's been around, unsolved, or no solutions in these forums.
    It keeps reminding me why Apple will never be the primary office computer company. Anyone running a business cannot have software running that will not behave, won't shut down, or behaves without any explanation, and this problem has no explanation, or solution that I can find except to use task manager to kill the process and only use iTunes when I'm expecting to shut down or kill the process.

  • Black window remains open even after closing the window programatically

    I have an application which has multiple windows. From mainwindow button click event I am closing the child form of the application. The child window is opened after a successful socket, serial or gateway connection attempt, after which the application
    do work with some threads and while clicking on a button on mainwindow I am closing this child window after disconnecting the respective connection mode. But after the close event the child window background gets black and it remains open unless and until
    I just do a minimize and maximize the application. Please help me on this to get this issue fixed.

    Well the details are rather going to depend on what it's doing.
    It's a very open ended question really.
    But...
    Your options include.
    Background worker.
    https://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx
    DIspatcherTimer
    https://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer(v=vs.110).aspx
    Async Await
    https://msdn.microsoft.com/en-us/library/hh191443.aspx
    Tasks
    Task.Factory.StartNew(() => { Dosomething(); });
    Or just a plain thread
    using System.Threading;
    new Thread(() =>
    Thread.CurrentThread.IsBackground = true;
    // DoSomething();
    }).Start();
    Where DoSomething is a method.
    You can also have inline code of course instead of a method.
    Whilst on a different thread to the UI you can't update UI objects.
    You'll get a thread affinity error message if you try.
    That means you either return your results to the ui thread and process them there ( particularly convenient with async await ).
    Or you update something which doesn't have thread affinity.
    An observablecollection bound to an itemssource doesn't have thread affinity eg.
    You do need to raise property changed at the end of your processing with that option because it notifies collectionchanged on the wrong thread and the UI won't know it changed.
    Or you can dispathcher.begininvoke to get back to the UI thread.
    All depends what you're doing but hopefully one of those options there will suit you.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • I have customized my Firefox toolbar. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it. How do I get my customization of the toolbar to become permanent?

    I have customized my Firefox toolbar several times. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it each time. How do I get my customization of the toolbar to become permanent?
    It has occurred with Firefox 4.0.1 and 5.0

    see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Take a picture of your toolbars so you can easily reconstruct them from the default after solving the the problem.
    If it happens to you it will probably happen again in the future so you might want to keep some copies of your modified localstore.rdf file so you can delete the bad one and rename one of the replacements in waiting. Saving, copying and renaming must be done with Firefox down, of course.

  • How do I get back into my iPad after updating the iOS?

    how do I get back into my iPad after updating the iOS?

    What do you mean? Why can you not access the iPad?

  • How can I get my safari to open after installing the new Mavericks operating system?

    How can I get my safari to open after installing the new Mavericks operating system?

    Thanks Carolyn. Unfortunately, this didn't work. It turned out to be in my display monitor as I have my computer wired to my tv for streaming. Once I changed the monitor display it worked fine. Go figure

  • How do get rid of a tab group without closing the tabs? How do I take tabs out of a group?

    I accidentally put all my tabs in one group. I'd like to get rid of the group without closing all the tabs in it; in other words, to undo putting all the tabs in one group. It would be useful to know how to remove a tab from a group without closing the tab, accidentally putting a tab in the wrong group will probably be a common error that needs to be easily undone.

    '' SisqB;''
    ''I searched about:config and found a listing of "stuff" under the S3 Downloads ''
    Can you take a snapshot of what you see?
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • HT5140 I did put another language in input source, and keyboard shortcut, but when I close this window, after opening the mail window, where do I see different language to click on?

    I did put another language in input source, and keyboard shortcut, but when I close this window, after opening the mail window, where do I see different language to click on?

    You switch keyboards by going to the " flag" menu at the top right of the screen.

  • How can I make my wireless keyboard "discoverable" after replacing the batteries?

    How can I make my wireless keyboard "discoverable" after replacing the batteries? Bluetooth keyboard setup said my  "keyboard is not connected" when I turned it on today.....assuming the problem was batteries, I replaced them.

    I've got it working now.....

  • Backend BSP session not closing on server after closing the window

    Hi All,
    We have SAP EP (7.0 SP21) and there is a BSP transaction ivew (Interaction Center ) intergrated in the portal. The issue is when the user performs any transactions inside the BSP and then closes the browser, session remains on the server till the timeout. Is there a way to end those sessions on server after closing the browser immediately?
    Portal domain : xx.mycomp.com
    ABAP system domain :mycom.com
    Should the domains be same for the DSM of Portal to work or is there any solution that can be considered.
    regards
    Uday

    Hi Uday,
    These are the main issues that can cause issues with DSM:
    JavaScript Origin Policy:
    Scripting
    between different domains is not allowed because of “JavaScript origin policy”.
    Also
    communication between mixed protocols (http\https) is forbidden.
    Therefore
    the portal server and the content server must be on the same domain and must
    use the same protocol.
    For
    detailed explanation see:
    http://mozilla.org/projects/security/components/same-origin.html
    Popup Blocker:
    •Popup blockers may cause troubles
    in relation with SRA feature.
    •Terminator handles notifications in
    new window when current window is being destroyed (logoff, closing browser
    window) – popup blocker prevents the opening of new window, hence no session
    handling performed.
    please also check SAP Note #596698 for more information typical problems and troubleshooting.
    In general, the 2 domains should be the same.
    xxx.mycomp.com, meaning that first part of the url can change but what comes after should be the same domain.
    Best regards,
    Etay

  • Exit the Browser window while closing the form in ORACLE 10g

    Hai,
    Is it possible to cIose the browser window while closing the form in Oracle 10g.
    I wrote a code EXIT_FORM in a "WHEN BUTTEN PRESSED" TRIGGER and
    web.show_document('javascript:window.close()','_self'); in "POST-FORM" trigger
    But it only closes the form.
    Please help me with the fast & useful responds.
    Bye

    create a file called close.html with the following code
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    call close.html in post-form like this
    WEB.SHOW_DOCUMENT('/forms90/myhtml/close.html','_self');
    You have to do the directory mapping

Maybe you are looking for

  • The parameter 'token' cannot be a null or empty string sharepoint

    Hello , I am trying to create SharePoint 2013 web app for office 365 using visual studio 2012. when i debug and run the SharePoint custom web app then it show the error ("the parameter 'token' cannot be a null or empty string") in the TokenHelper.cs

  • 802.1x takes a long time to authenticate

    I'm currently testing 802.1x in our evironment and one of the things I want to do is mac-address authentication (basically a machine trying to connect to a port has to come up against our ACS server with these addresses). I can get it to work but for

  • GR of subcontracting items without issuing  components

    Hi all I am facing a problem regarding subcontracting. In a PO of material X  (item category L (subcontracting)) of required quantity 10, a component Y quantity 50 to make X is to be given to the vendor. The problem I am facing is that I am able to p

  • Two columns referncing one dimension

    Hello, I'd like to have two columns in a fact which are connected to the same dimension. Is this possible in OWB and how ? Thanks !

  • Chart #HOST# issue

    Here's one I just came across. I developed a system that is using an internal server. It can be accessed from an external website in order to run it in user mode. The problem is that when the charts are being called through the external website, it i