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.

Similar Messages

  • 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

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Passing Value from a Popup Window Back to the Parent Window

    I am using JSF. I try to pass a value that is entered by users in the popup window back to a text field in the parent window.
    quote: document.forms[ ].elements[ ] is null or not an object.
    The relevant code snippets are shown below. The screen1.jsp is the parent window:
             <script language="JavaScript1.1">
               function doPopup(source)
                    popup = window.open("externalFilePopup.jsp",
                        "popup",
                         "height=300,width=200,toolbar=no,menubar=no,"                    + "scrollbars=yes");
                    popup.openerFormId = source.form.id;
                    popup.focus();
               </script>
    <h:outputText value="Enter the external system file name"/>        <h:inputText value="#{dataManagementBean.ip}" size="18" />
    <h:commandButton value="..." onclick="doPopup(this); return false;" />
    ..........The externalFilePopup.jsp is the popup window:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].elements[ formId + ":ip" ].value = value;
                   window.close();
            </script>
         <h:outputText value="IP Address: "/>
         <h:inputText size="25" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('#{dataManagementBean.ip}');"/>
            .......... The script error occurs when I click on this OK button.
    Please point out the mistakes in my code. Thank you.

    I have made some modifications to the code in the popup window. The error reported in my previous posting is gone. But, I still have several problems:
    1. syntax error in the popup window jsp page: line 45, char 21, syntax error, ..., Do you want to continue running script on this page?2. The popup window does not close after I click on the OK button that I coded in the popup window jsp.
    3. The value that I entered in the popup window eventually gets passed back to the text field in the parent window only if I re-run the application.
    The relevant JavaScript code snippets are:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].form[ formId + ":ip" ].value = value;
                   window.close();
            </script>
                                       <h:outputText value="IP Address: "/>
         <h:inputText size="25" id="ip" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('ip'); return=false;"/>
    ......What are the mistakes that I made?

  • APEX... Link to open URL in a new window

    I have one of my interactive reports' column linked to a URL... so when my user click on the link it opens an associated webpage...
    How can I make it to open in a new window...
    Thanks

    Hi,
    I am trying to open my page as a popup without refreshing the parent window.
    Here is what i have done
    1. created a navigation bar entry for help
    2. pointed the entry to a page in the application
    3. opening the page as a popup with the following code in it.
    javascript:window.open('&WORKSPACE_IMAGES.APEX_Reporting_User_Guide.pdf#&P0_PAGE_NAME.','popup1');
    my help page opens as a popup, but also refreshes the parent window with a blank screen.
    i also tried a few other options
    javascript:window.open('&WORKSPACE_IMAGES.APEX_Reporting_User_Guide.pdf#&P0_PAGE_NAME.','popup1');void(0);
    javascript:window.open('&WORKSPACE_IMAGES.APEX_Reporting_User_Guide.pdf#&P0_PAGE_NAME.','popup1');return false;
    but none of these are helpful
    Am I going wrong somewhere?
    Thanks
    MM

  • CSV file replacing the parent window

    Joined: Dec 16, 2011
    Posts: 5
    posted    Friday, December 16, 2011 3:35:15 PM
    0
    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    You are probably better off asking in the developer forums : https://devforums.apple.com/index.jspa

  • CSV file downloading replaces the parent window

    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option. So i'm unable to get the parent window again.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    Hi,
    For pdf file if we choose adhoc or by giving the proper name, we can able to get the options like OPEN or SAVE. This will work fine for pdf.
    But here im trying with csv file /html file, so the file is replacing the existing screen itself when i click the csv link. In my web application, i cannot get the parent window by using back button once i get the csv file instead page gets expired.
    So my best suggestion is should we able to open the csv file in new Tab of safari instead of replacing the parent window where im clicking to open the csv file.
    Suggestions pls.

  • How to re-show a dialog with the parent window

    I am writing an Menu drivern application:
    -- A JCMDIPane is put in the JFrame.
    -- Multiple JCMDIFrames are added to the JCMDIPane via menu selecting events
    -- Each JCMDIFrame (call it parent) may pop up a Dialog window (child) (Thes dialogs are modal)
    Here is my problem:
    When you switch away from this Java application to other applications (reading mauls, editing word documents, surfing web), of course, the Java program is hiding behind these applications and only left a Icon on your taskbar. The problem is that when switch back from other application to this Java program, However, it only shows the parent window (the JCMDIFrame ) and the child (the dialog) is behind. You have to using Alt_Tab to get the focus on the child and show it.
    My question is:
    Is there any way can we show the Dialog window is on the parent window (as it originally shown)?
    I have tried to overwriting the paint method of JCMDIFrame :
    public void paint(Graphics g)
    super.paint(g);
    if(child != null && child.isShowing())
    child.setVisible(true);
    This works on other applications but not on the Internet Explore (It always show the dialog).
    Anybody can give me a clue?
    Thanks!

    When you pop up a dialog, if you use the constructor:
    Dialog(Frame owner, boolean modal);
    and pass it an instance of the parent frame (and set "modal" to "true"), then it is my understanding that it should always appear in front of the parent - are you sure this is what you are doing?
    Double check by doing myDialog.getOwner() and make sure it's not null.

  • My tabs are seperated into groups. Once I accidentaly opened a site in a new window (not a new tab). After that, I accidentaly closed the Firefox window with all my grouped tabs. Now, I can't recover it. Are there any solutions?

    I have my tabs seperated into several groups (for example, bank tabs, music tabs, social life tabs and so on). I do this with the help of the button in the top left corner. While I was surfing the internet, I accidentaly opened a site not in a new tab (as I usually do), but in a new window. The new window was without all the grouped tabs, which I had in the previous Firefox window. And then I accidentaly closed the Firefox window with all my grouped tabs. Now I can't recover it. Are there any solutions?

    Hi,
    We have rolled out a fix for this issue.
    Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
    For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
    Please let us know if you still face any issues.
    Thanks,
    Ashu Mittal

  • Firefox 7 won't allow me to switch windows; if it's up, it's on top, so if I ask it to open a site in a new window (instead of a tab) I can't get to the window without minimizing the first window. This makes it impossible to work.

    I upgraded Firefox to 7 on my Win7 Pro 64 bit desktop yesterday. Today when I try to open a site in a new window, the window opens but I can't switch to it unless I actually minimize the first Firefox instance. Clicking on the second window just shows the first window again.
    Worse, it insists on being on top of other programs. I needed to check my Norton Firewall settings against some instructions on a web site, and I couldn't switch back and forth - I could ONLY have Firefox on top. Until you fix this I'm going back to Chrome, guys. I have looked through the Options menus and I can't find an "always on top" box to uncheck.

    Dear mkunz,
    I can understand your frustration. I have elected for the option to pick up an item from a UPS location when missed upon delivery before; it is definitely a convenient option when working around a work schedule. I apologize that this option wasn’t available to you for your phone purchase.
    We do understand that people have to work and this is why we allow three opportunities for you to receive the product. I see that AWBrown has submitted an idea to ideaX page asking us to look into reevaluating this process. Using your email address you have supplied here on the forums, I was able to look up your order. Based on the tracking information, it appears that you successfully received the phone on 06/03/2014.
    If this is not the case, please let me know!
    Thanks for reaching out,
    JD|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Window.open() will open separated windows even using the same window name?

    Hi, I have below two test html pages as below(could not find a way to insert a attachment, so paste the content below). The reproduce step is as below: (My environment is Win8.1 with IE11)
    1. Open print_test.html page in IE, here we call page1.
    2. Click "File -> New Session" menu from IE menu bar, which will open another new IE window which display another " print_test.html" page, here we call page 2.
    3. Click "Print" hyper-link in page1, and a popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 3.
    4. Click "Print" hyper-link in page2, and another popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 4.
    However, the behavior above is totally different on my Win7 (64 bit) with IE 10, which is in step 4, when I click "Print" hyper-link in page2, instead of open a new popup window, the window for page 3 will be reused and counting will restart from
    1.
    I googled and know from MDN for window.open() and get below information to indicate that in my test pages, I use the same window name, so that the existed window with the same name will be reused is as expected, but however, why IE behave differently in
    Win8.1 with IE 11? Why the existed window could not be reused anymore?
    If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window.
    The behavior in Win8.1 + IE 11 is similar with what Google Chrome does, and Chrome's explanation is that two separated window using separated processes which do no share information, so that even using the same window name. twp separated windows will
    popup.. So I am confused here, IE 10 and IE 11 are both using multi-process mechanism right? I saw from the Windows Task Manager, when using "File -> New Session" to open another print_test.html page in step 2. both IE 10 and IE 11 are opening
    4 iexplore.exe processes, two of them are 64 bit, and two of them are 32 bit. I can't see any configuration difference between these two envs, but why the behavior is so different? 
    Could anyone give some help and clarify here? Great thanks in advance.
    Oh, btw, another colleague can reproduce the issue (open separated windows even using the same window name) in his Win7 64 bit with IE 10 env, but could not reproduce in his Win 32 bit with IE 10 env... Hope this information could also do help.
    ======================== Test pages ===============================
    (1) print_test.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Print test</title>
    <head>
    <body>
    <h1>Print test</h1>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test");'>Print</a></p>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test"); myWindow.location.reload(true);'>Print (force refresh)</a></p>
    </body>
    </html>
    (2) print_test_open.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Open</title>
    <head>
    <body>
    <h1>
    <div id="count">Test</div>
    </h1>
    <p>Test</p>
    <script type="text/javascript">
    var e = document.getElementById("count");
    sessionStorage['count'] = 0;
    function timedCount() {
        i = sessionStorage['count'];
        i++;
        sessionStorage['count'] = i;
        e.innerHTML = "Count: " + i;
        setTimeout(function(){timedCount()},100);
    timedCount();
    </script>
    </body>
    </html>

    Hi,
    please try in noAddons mode and with the IE Popup blocker turned off. Also ensure you are using the default IE Security zone settings. Internet Options>Security tab, click "Reset all zones to default"
    To debug your scripts in IE11.
    Tools>Internet Options>Advanced tab, check "Always record developer console messages".
    start your test and display the developer tool console to display suppressed errors and warnings.
    (I don't see where myWindow is assigned).
    "If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window."
    window.open has an optional 'replace' parameter...
    http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx
    to reuses a tab or window
    window.open({url},[name],[placement],[replace])
    If possible can you please provide a publicly accessible link to your test pages as we need to inspect the response headers to monitor what is cached.
    or
    f12>Networking tab, click 'Start' button, then proceed with your test plan.
    Regards.
    Rob^_^

  • 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

  • Depreciation run problem."You can only post in new year after closing the"

    Hi,
    We are implementing Asset accounting to one of our co code.New Assets were created in Jan and when I tried to Post depreciation for Jan, I get an error log that says "You can only post in new year after closing the previous year."
    When i double click on error message.
    Diagnosis
    You want to post in a new fiscal year. However, a posting must have been made in the last period in the previous fiscal year before you can do this.
    Procedure
    Post to the last period in the previous year first.
    So I went ahead and opened the previous year, posted the depreciation, closed the year and tried to post Period 1 again, but still get the same error.
    Why do I need to post the previous period if I just created the assets in this period?
    I Have completed AJRW, AJAB also.
    I think it may be a problem with Table. Please suggest me.
    Thank you

    Hi,
    Please check the following :-
    1. Check the Last Closed year in your Asset Accounting.
    2. Check the Last Depreciation Posted in Your Asset Accounting.
    These 2 menus are available in "Data Transfer in Fixed Asset Accounting".
    revert back to me for further actions,
    regards
    N.Kumar

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

  • Dep Error:AA687-You can only post in new year after closing the previous year.

    Hi Experts,
    I need solution on error while posting dep. we have new co cd started operative from Jan -14 . So while doing dep posting run we are getting error "AA687-You can only post in new year after closing the previous year".
    I searched and got that Note 144441 need to implement.
    Let me know whether is it fine to go ahead or Is there any alternative solution.
    Also i want to know what need to to be done after implementing this note.
    please reply , its bit urgent.
    Regards
    Atul

    Hi Deepanshu,
    Also the FI period is also closed 2013 so in this case do i need to open the same , correct? for running dep posting along with OAAQ opening for AA.
    Or the note implementation will take care all. instead of running dep , opening closed period.
    pls suggest.
    Regards
    Atul

Maybe you are looking for

  • Nano 6th generation

    My 6th generation nano will not sync with my library giving the message of "unknown error -39"

  • Shopping Cart workflow retrigger for changes done to SC already created

    Hi all, A shopping cart is created and later on in "Check Status" when the shopping cart is opened in change mode and any changes are made to the shopping cart either header or item level, the whole approval workflow is retriggered and the approvers

  • Ghosting fresh image of OSX W/O Time Capsule

    I was wondering if there is a way to either Ghost an Image of OS-X using Symantec or better yet without Symantecs Ghost application such as using a USB External drive for a Bk-Up. I am new to Apple and I know this stuff in relation to a Windows machi

  • DFS Replication Problem

    Hi Friends, I have windows server 2003 domain at two location before somw month back its replication data and its working fine but now i unable to see replicate data i mean i thing having replication problem i gotted some evint id error on server Eve

  • How do i bypass the emergancy calls screen for iphone 3g

    my phone is stuck on the emergancy calls screen and id like to know how to bypass that?