Using same opened popup window

Hi,
I have a scenario where I have 4 button in a view and I have to open same external URL window for all 4 buttons.
Now user wants to use same popped up window (if already opened). He doesn't want to open same window again and again.
Currently I am using non-modal external window code to open this window.
wdComponentAPI.getWindowManager().createNonModalExternalWindow(DAS_URL).show();
Can you please tell me how do I achieve this req?
Please help.
Thanks and regards,
Amey

Modify your code to have a handle for your window:
IWDWindow window = null;
//when button is clicked:
if (window == null) {
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(DAS_URL).show();
else {
    // do nothing, window is still open
window.destroyInstance(); //this will close your window
window = null;
Hope this helps!
Best regards,
Robin van het Hof

Similar Messages

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Open popup window; using struts

    function showPopUp() {
    window.open('/PrepareAddAction.do', "", "resizable, height=200, width=200");
    I am try to open a popup window but the above code getting exception.
    A new window opens but getting error
    The requested resource (/PrepareAddAction.do) is not available
    what is missing and how to fix this?
    Thanks.

    What you are missing is your "context" as part of your URL.
    The webserver treats "/" as the root of the webserver. Presumably you want it to be the root of your web application context. You need to add the context path to all urls generated into HTML. The struts tags can help you do this.
    Couple of solutions:
    window.open('<%= "/" + request.getContextPath() + "/PrepareAddAction.do" %>', "", "resizable, height=200, width=200");
    or using the struts html:rewrite tag:
    window.open('<html:rewrite action="PrepareAddAction"/>', "", "resizable, height=200, width=200");
    Both should have approximately the same result.

  • Can't open popup window in item renderer

    I have a datagrid with two columns. Each column has it's own
    itemRenderer. The itemRenderers have there own class. In one
    itemrenderer I have a link button and it has a click event that is
    associated with it in the script block of that class. Inside the
    click event I have the following code to create a popup:
    var popup_win:MyWindowType = MyWindowType
    (PopUpManager.createPopUp (this, MyWindowType , true));
    When I click the linbutton I will see a flash and a blur
    affect as if the window is trying to open but never does. I've
    traced "this" and it's the renderer... So I tryed to reference back
    up the that class that has the datagrid control... which is
    this.parent.parent.parent... but that doesn't work either. I'm
    basically trying to open a window that allows the user to choose
    some stuff from a radio button and then when they click ok on the
    popup window it does some validation and then the contents get's
    changed in the cell that it came from. I want the popup to open
    upon clicking of the link button or else I would use the editor
    functionality. Any ideas of how I could do this?

    Good Day
    I had the same idea for an itemrenderer....but I'm using the
    mouse_over event.
    A titlewindow pops up when moving over a row in the datagrid,
    and closes when moving out.
    The intent of the popup is to show some charts and additional
    links.
    However, when the popup shows, and I move my mouse into the
    popup box, the mouse movements are still being registered by the
    datagrid row below the popup box...hence making a new popup box
    appear every time I move the mouse.
    I tried to set focus on the popup alone...but still doesn't
    work.
    Here's the itemrenderer code:
    <mx:Text xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="_OnCC()" mouseOut="_mOut()">
    <mx:Script>
    <![CDATA[
    import mx.core.Application;
    import flash.events.MouseEvent;
    import mx.managers.PopUpManager;
    //import mx.controls.Alert;
    private var pop1:_popup_gridb;
    public var currentColumn:String = "";
    public function _OnCC():void{
    var currentXml:XML = new
    XML(data..field.(@columnname==currentColumn));
    text = currentXml.@value;
    text = text.toUpperCase();
    addEventListener(MouseEvent.MOUSE_OVER, _mOver);
    //addEventListener(MouseEvent.MOUSE_OUT, _mOut);
    private function _mOver(event:MouseEvent):void{
    //Alert.show("Hello World");
    pop1 = _popup_gridb(
    PopUpManager.createPopUp(DisplayObject(this.parentApplication),_popup_gridb,false));
    //PopUpManager.createPopUp(Application.application as
    Sprite,_popup_gridb,false));
    //PopUpManager.createPopUp(this,_popup_gridb,false));
    pop1.showCloseButton=true;
    pop1.id = "_pu" + Math.random();
    //pop1.dataView = dv;
    pop1.title = pop1.id.toString();
    PopUpManager.centerPopUp(pop1);
    //removeEventListener(MouseEvent.ROLL_OVER,_mOver);
    private function _mOut():void{
    PopUpManager.removePopUp(pop1);
    //addEventListener(MouseEvent.ROLL_OVER, _mOver);
    ]]>
    </mx:Script>
    </mx:Text>
    Currently, the popup is just a titlewindow w/a datagrid
    inside.
    thx
    j

  • Open popup window from non graphic window

    Hi All,
    i'm trying to open a popupwindow of one of my classes, but i
    have no parent reference in the current class that i'm working
    with, how can i refer to the main application window?

    If you have a model for your application state, use this:
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="this.onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private function onApplicationComplete():void
    // Component map
    this.model.map["app"] = this;
    ]]>
    </mx:Script>
    </mx:Application>
    You will be able to refer to this.model.map["app"] as the
    parent of your popup window from anywhere in the application.

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • Open PopUp Window without Title

    Hi all,
    How can I open a PopUp window without title?
    I have only one command related to window title:
    window.setTitle(string);
    But I need it without title at all.
    Any idea?
    Thanks,
    Michael

    Hi
    Very First tell the version of NWDS?
    Second  have a look on this [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d]
    (Here context is different but we can say based on this article that some workaround we can do(applicable only  for CE EHP1))
    Third We can give not exactly  but a little different solution to this (your )  problem
    1. By using  buttons with has no text only standard icons provides by sap ( X ) in red color.with associating action which close the popup.(button will be at right corner of popup with red signal will gives a intuitive feel like normal window )
    2. Some places i have seen(in CE version) that SAP uses this options(normally when they provide some kind of help).
    Best Regards
    Satish Kumar

  • Yahoo mail page shows blank content when opened in fedora 12. the same opens in windows

    I recently installed fedora core 12 on my lenovo ideapad s10-3 to dual boot with windows7. I connected to internet and opened yahoo mail. when i viewed a mail (any mail) it does not show any content. When I open the same mail in windows, I see the content. I am using Firefox browser in both operating systems.

    antivirus was not a problem since there was not one installed. Firewall settings are fine. I did just finally resolve this issue. Spyhunter was able to detect a couple of hijackers that the other programs did not and this fixed the problem. As I stated in the original post I did suspect this was the issue. The lesson learned is to run multiple malware programs until you find one that eliminates the problem if you suspect malware as the problem.

  • Linking PDFs to open popup windows

    I am working on a project at work in which we have PDF graphics in-line within a web page.  I want to add a link to one of the graphics to call a custom javascript function that is in the page to display a special popup window.  First off, is this possible?  And secondly, if it is, how do I tell it to call the javascript that is in the html page?
    Chris Cote

    In MVVM LIght 5 there is a dialogService you can use for this
    http://marcominerva.wordpress.com/2014/10/14/dialogservice-in-mvvm-light-v5/

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • Unable to open Popup Window after transporting using NWDI

    Hi
    I am using Nw04 SP19. I have created a window using createWindow() and createModalWindow() too. The Window opens if we use direct deployment into  the server, whereas afer we transport thru NWDI the window dosent open and gives null pointer exception.
    Even creating ConfirmationDialog has the same problem.
    The Issue occurs after Assembly is Done in NWDI i.e after SCA files created ( just thought this info is useful).
    Any comments on this is appreciated.
    Thanks
    With Wishes
    Krishna kanth

    You say its urgent
    So urgent, so oh oh urgent
    Just wait and see
    How urgent my love can be
    Its urgent

  • AIR: allow scripted window.open popup windows for specified sites ?

    I'm adding desktop interaction to an existing webapp using AIR.
    The webapp allows portlets to be undocked into their own window using a scripted "window.open" call.
    When running the webapp in AIR, the "window.open" call is blocked (window ref returned is "undefined").
    Presumably AIR is detecting the invocation of "window.open" isn't directly linked to the mouse click event.
    With a "standard" browser, you can configure the popup blocker to allow popups for urls specified as Exceptions.
    Is there a way to do this in AIR ?  (either by config or by overriding one of the AIR classes).
    I've looked at using a custom HtmlHost but the popup blocking occurs before the HtmlHost.createWindow () call

    I couldn't find a way to customize the pop-up blocker in AIR.
    I tested the same thing with Safari 4.0.5 (AIR uses WebKit 4.0.3) and got the same result.
    After some testing I found that changing the Javascript to ensure that the event was bound to "onClick" fixed it (previously was bound to "onMouseDown")

Maybe you are looking for

  • Free Goods with Batch Management Activated !!!

    Hi Gurus, I have defined a free goods master data for material on which batch is activated. I have defined the it as with a min of 10 qty 1 free good will be delivered as exclusive item Now as the batch management is active and each batch has 1 qty i

  • Problem for posting in some ledgers

    Hi All, We have activated new GL and three ledgers, one leading ledger and others non leading ledger We want to post only to the non-leading ledgers simultaneously for many adjustment postings. How to do that? Or do I need to put specific ledgers in

  • Itunes 7.0.3 error message

    I just downloaded Itunes 7.0.3 and when I went to open it it said a newer vesion of Quick Time 7.1.3 or later is recquired for ITunes 7.0.3. I went to the quicktime player and it said that I had quicktime 7.1.6. I've redownloaded Itunes and tried to

  • Hyperlink in pdf not working

    I am using internetexplorer 11.0.9600   and opened a pdf. but that pdf has more hyperlinks when i move the cursor its linking to c:\windows\user\temporary files  not to the  actual http url. and not able to open it ? Looking for a solution

  • Sunray not connecting to VDI server externel DHCP server

    Dear all, my VDI server is ready. and having ip address as 172.25.40.39/24. my sun ray client is in the network having ip 172.25.30.83/24. as you can see both these ip address are in different networks. i mean it is not the same subnet. both the syst