Modify URL of an existing opened external window

I need to reset the URL of an external window opened by the application without destroying the and re-creating it.
Thanks.

Thanks for the responses.
Valery, the destroy() is deprecated.
Betram, the LinkToURL works with regard to maintaining single external window with url being modified as needed.
However, this solution requires user to click on the UI element of LinkToURL. Mixing the LinkToURL UI with btns, in my case, is not desirable. Is it possible to make the LinkToURL UI hidden and trigger it via a Btn? The properties of LinkToURL doesn't seem to include OnAction...

Similar Messages

  • Webdynpro application can't display a URL iView in a new External window

    Fellow developer:
    In my WD4A application, I called the method 'navigate_absolute' to display a URL iView in a new External window.
    The code is as follows:
    data lo_portal_manager type ref to if_wd_portal_integration.
    call method lo_portal_manager->navigate_absolute
    exporting
      navigation_target = 'ROLES://u2026'
      navigation_mode = '1'.            ('0' - Displayed in the Same Window, " '1' - Displayed in a new External Window)
    The application can display the iView in the same Window (navigation_mode = '0'), but cannot in a new External window (navigation_mode = '1').
    In the iView properties, the following attributes are set to:
    1. Launch in New Window - Dipslay in Separate Window
    2. Open iView Links in New Window - Yes
    If you know the answer, please advise.
    Thanks
    Bac Quan

    hi,
    i have the same problem. Did you solve it?. Please let me know...
    regards,
    MC

  • Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

    Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

    Hi,
    If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
    If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
    Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
    This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
    Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
    Hope this helps u,
    Regards,
    Kiran

  • Application lock on open external window

    Hi everybody,
    I have problems with opening a new browser window pointing to a folder on the network.
    If the user has access to the folder everything is working fine.
    If the user has no rights to access the folder, the user gets an error message and the window stays empty. After clicking okay on the error message and closing the window the  user can continue working in the application.
    If the folder which should be display does not exist the user gets an error message.
    After clicking oay on the message he can return to the application. But there the 'progress circle' is still running and it cannot abort or do anything! The user has to close the application and login again.
    Is there a way to handle the external window in any way after having it opened and the calling method was left?
    Any hint or advice is highly appreciated!
    Best regards,
    Roland

    Hi,
    Do this way... So that there will not be a minimise option, close option. and control will be there inside the Window and till the time user closes the window he cannot perform any actions on any other screens.
         //Added below code to open a new window
              IWDWindowInfo info =
                   wdComponentAPI.getComponentInfo().findInWindows("WD_vendorTable");
    //Where WD_vendorTable is a window with the desired view embedded inside it.
              IWDWindow win =
                   wdComponentAPI.getWindowManager().createModalWindow(info);
              wdContext.currentContextElement().setVa_VendorWinName(win);
    //Save this window information in a context variable(declared at component level and mapped to the parent view and to the window(child) view)
              win.setWindowSize(300, 300); //Desired window size
              win.setWindowPosition(600, 100); //Desired window position (from top left cornor)
              win.setTitle("Vendor Details"); //Desired window title
              win.show();
    To close this window
    create a button inside it and inside the button's action
    IWDWindow win=wdContext.currentContextElement().getVa_AssetNoWinName();
    win.destroyInstance();
    Regards,
    Srinivas.

  • Open external window from  custom controller

    I have to write code to open an external  window. It should be done from the custom controller and not from component. when i use the following code i get error " The method getWindowManager() is undefined for the type IWD Controller.
    Pls note that I am using IWD controller here..
    IWDController component = wdThis.wdGetAPI();     
    IWDWindow helpWindow =
              component.getWindowManager().createExternalWindow(
                   helpUrl,
                   "help",
                   false);
    Pls help..

    Hi,
    Use
    wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(URL, title, modal)
    Regards
    Ayyapparaj

  • Open external window / window size

    Hello,
    is there a possibility, to open an external window and change the browser to fullscreen mode?
    Regards

    Hi,
    Check this code for Calling the External window with in the application.
    DATA: l_cmp_api           TYPE REF TO if_wd_component,
             l_window_manager    TYPE REF TO if_wd_window_manager,
            window_result type ref to IF_WD_WINDOW.
      l_cmp_api           = wd_comp_controller->wd_get_api( ).
      l_window_manager    = l_cmp_api->get_window_manager( ).
    *  IF wd_this->m_popup1_1 IS INITIAL.
        wd_this->m_popup1_1 = l_window_manager->create_external_window(
                 url  = 'ur URL
    *              title          = 'My Report 1'
    *  ENDIF.
      wd_this->m_popup1_1->open( ).
    Here m_popup1_1 is the type of IF_WD_WINDOW.
    Thanks.

  • How to set "Date Modified" as default tab in Open File window

    Photoshop CS5.1
    When I click on Open File, the window that comes up has several default columns (FileName, Date, Size, etc).
    I can right-click on the tab bar and add "Date Modified" to the tabs, but I would like to have "Date Modified" be a default column whenever I open the file selector (and no matter which folder I open up).
    I cannot find a way to do this. I want to know the last date I modified a file, not when it was created.
    Is there a way to universally set this column as a default?

    Date modified always shows for me in Details view.
    I believe what columns are showing has to do with what columns you've set in Windows Explorer...
    Here's an excerpt paraphrased from my Configure the Windows 7 "To Work" Options book that may cover what you need:
    Open Windows Explorer...
    Navigate to a folder of the type you want to see (e.g., one containing your Photoshop images) and set Details view. 
    Make the window look the way you'd like future Explorer windows to look.  Reorganize Details view columns, e.g., to Name, Size, Type, Date Created, Date Modified, Attributes, etc. and size them so they fit.
    Choose Tools - Folder options, then click the View tab.
    Click [ Apply to Folders ] to apply the above settings to all folders.
    [ OK ] to exit.
    Hope this helps. 
    If the Date modified still doesn't stick for you, there are some other things I've done (and documented) to tweak the configuration of my systems that may help make my seeing the columns being set as shown in the attached image when I choose File - Open in Photoshop.
    -Noel

  • How do I configure safari to open external links in the existing window

    The current version of Safari (8.02) always opens an external link (such as from Mail) in a new tab.  I would like to configure so that it loads the link in the existing open tab (window).  Is there a way to do that?  If so can some one tell me how to do that?

    Linc:  I have seen that configuration page and none of those options allows you to configure Safari so that it will load an external link in an already open tab or window.  I have looked in two different reference books on OS X (Mavericks not Yosemite) and not found any relevant information in their discussions of Safari.

  • How do I force firefox to open a new URl on the current viewed tab or a new one. It opnes the URl on an existing Non viewed tab

    I have tried all the tab option and can not get Firefox to act like it did on the previous version. Firefox does not display the new url in the existing open tab or a new tab. Since installing the update, it opens the url in an existing backgound tab.

    Open link/bookmark in new tab in same window:
    *Middle-click (press the mouse scroll wheel) the link
    *Ctrl+left click the link
    *right-click the link, choose "Open Link in New Tab"
    Open link/bookmark in new window:
    * Shift+Enter on the link
    * Shift+left click on the link
    See: http://www.7is7.com/software/firefox/shortcuts.html

  • Closing an external window

    Hello,
    I would like to close an external window dynamically by calling the method
    lr_myextwin->close( ) when some event occurs.
    This does not seem to work since the opened external window is still open...
    Ofcourse it is possible to manally close the external window, but I would like it to happen dynamically.
    Can any brief me in, if it possible.
    Cheers,
    Gerald

    Hi Jagruti,
       Its possible to close the external window dynamically.What you have to do is , while creating the external window instance, save the instance in the component controller as an attribute .
    Which means create an attribute in the component controller of type IF_WD_WINDOW ( In this case i have created LO_POP_UP ).
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
       CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW
         EXPORTING
          MODAL                = ABAP_TRUE
           WINDOW_NAME          = <WINDOWNAME>
          TITLE                =
          CLOSE_BUTTON         = ABAP_TRUE
          BUTTON_KIND          =
          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
          CLOSE_IN_ANY_CASE    = ABAP_TRUE
          MESSAGE_DISPLAY_MODE =
          DEFAULT_BUTTON       =
         RECEIVING
           WINDOW               = l_final_window
    When you get the instance of the window.Save it in the component controller attribute.
    wd_comp_controller->LO_POP_UP = L_FINAL_WINDOW.
    CALL METHOD L_FINAL_WINDOW->OPEN
    At later point of time , you could get this instance from compenent controller and you can call that in your method whenever and whereever necessary , so that you could close the window in a smooth fashion.
    mywindow = wd_compcontroller->LO_POP_UP
    mywindow.close().
    Thanks
    Anzy.
    mark this thread as closed if this solves your problem.

  • Invalid URL Exception while opening a file using external window in webdynp

    I am trying open an URL ythru external window on click of button in my webdynpro.
    This is the URl I am trying to open
    File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    if I try to open from a from the browser it works fine but thru webdynpro it is throwing the error.
    mww is another system where the file is residing.
    But I am using the same techniue in other component where I am able to open file from an external window.
    File://mww/Documents/Attachments/2008/10/56254/some.jpg
    The only difference in  the URL is {FD803B0D-157F-47F9-A5A8-C687E1DC6B96}Since this URL is generated by another system I do not have any other aletrnative but I have live with this URL.
    can some body please give some idea how to fix this
    if I use java.net.URLEncoder.encode() then I am not getting any error , buit file is not opening in the browser( external window)
    below is the error stack I am getting.  
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
    at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createNonModalExternalWindow(ClientComponent.java:1037)
    at com.gis.dcww.findsrch.AttachmentView.onActionOpen_Attachement(AttachmentView.java:179)
    at com.gis.dcww.findsrch.wdp.InternalAttachmentView.wdInvokeEventHandler(InternalAttachmentView.java:203)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    thanks
    PK

    Hi Armin, Josue
    Thanks for the reply
    Please note I am able to open an external window( browser ) thru my code with "File" protocol.
    I have no issue opening an external window or using File protocol.
    I am able to open an image/doc with a normal URL as follows
    File://mww/documents/image.jpg
    or
    File://mww/document/temp.csv
    But My URL has some system( thru Other applications ) generated charaters in it , I need get the path from DB( which I have done ) and pass this URL to the ExternalNonModalWindow as paramter.
    MY code is opening successfully the external  window for any URL .
    but for URL which has these character { }  is throwing the invalid URL error 
    for the below URL, I am getting the error
    File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    thanks
    PK
    because of the flower bracket it is throwing the error.
    thansk
    PK

  • Open View or Window in a external window (popup)

    Hi experts!
    I have the following issue:
    - I know how to open a external window from a given URL, but my problem is that I want this new external window to open and show one of my own windows and I don't know how to get the window's URL. Any Idea???
    Please help or redirect me to some doc or post. Thanks.
    Osvaldo Silva

    Hi,
    If you want the url of the another window in your WD Component. As per my knowledge you need to have a seperate application to be created for this window also.
    For Example you have Window1 (View1 is embeded in this window) and Window2(View2 is embeded in this window). Now you need the url of the Window2.
    So for this purpose you need to create two applications for this WD Component.
    For example App1 (Created for Window1InterfaceView) and App2 (Created for Window2InterfaceView).
    Now use this below code to open the Window2 URL in a sepearate window.
    // Get name of deployable object this component belongs to
    String deployableObjectName =
    wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    Map urlParameters = new HashMap();
    // If there are any application parameters you need to pass to App2 you can set those in urlParameters
    // as urlParameters.put("key","value");
    try {
    // Get deployable object part of target application.
    // Precondition: assume, that other application belongs to the same
    // Web Dynpro Project (Deployable Object)
    WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart(
    deployableObjectName,"App2",WDDeployableObjectPartType.APPLICATION);
    // Get target URL based on deployable object part and URL parameters
    String urlToTargetApp =WDURLGenerator.getApplicationURL(deployableObjectPart, urlParameters);
    //Open this urlToTargetApp in external window.
    IWDWindow window = wdComponentAPI.getWindowManager(.createNonModalExternalWindow(urlToTargetApp,"Window2");
    window.show();
    } catch (WDURLException e) {
    messageMgr.reportException(e.getLocalizedMessage(), false);
    } catch (WDDeploymentException ex) {
    messageMgr.reportException(ex.getLocalizedMessage(), false);
    Note:/Warning:  We are opening another window using another WebDynpro application.
    Here it creates a seperate WDComponent instacne. You can't access Window1(View1)'s existing context data in Window2(View2). The only way is you can pass some data using app/url parameters.
    Apart from this as per my knowledge there is no other way to get the url for a Window.
    Regards,
    Charan

  • Error while opening the external window

    Hi
    I am trying to open an external window on click of a button.
    This is the piece of code I have written
    url = "http://www.google.com";
    url = java.net.URLEncoder.encode( url ) ;
    String title="External Window";
    //IWDWindow win=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
    IWDWindow win=wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,title );
    win.show();
    //win.open();
    I have tried both show() and open() method. and also createExtrenalWindow and CreateNonModalExtrenalWidnow. But I am getting the follwing error.
    Application error occurred during request processing.
      Details:   com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'dc.gs.com/osrch' and application 'http:' are not deployed on the server. Please check the used URL for typos.
    Exception id: [0017087D8739002C0000025600001B9C00045A7873FC3E52]
    This is the URL it got in the external new window..
    http://<host>:50000/webdynpro/dispatcher/dc.gs.com/osrch/http%3A%2F%2Fwww.google.com
    I know the www.google.com is concatenating with portal URL , hence it is throwing the error.
    How to get rid of the portal path
    thanks
    PK

    hi,
    You can try the following code:
    IWDWindowInfo info = wdComponentAPI.getComponentInfo().findInWindows("PopUpWindow");
        IWDWindow window = wdComponentAPI.getWindowManager().createWindow(info , true);
        window.setWindowPosition(WDWindowPos.CENTER);
        wdContext.currentContextElement().setVa_win(window);
        window.open();
    This works fine.
    Thanx.

  • Opening an External Window which shares the same context.

    Hi,
    I have a requirement where <b>I need to open an external window which shares the same context</b>. (i.e, A window which belongs to the same application in a seperate browser)
    If I use the following coding <b>it only opens a model window in the same browser</b>.
    IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("NewWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(winInfo,false);
    But if I use wdComponentAPI.getWindowManager().CreateExternalWindow() <b>it could only accept the URL that opens a seperate application with different context</b>.
    Please help me in this regard.

    Hi Anbu,
    Dont feel bad that i am asking you more questions than giving you answers.
    if you just want to show content or let the user enter data or something you can use always popup modal/non modal window.
    External window is used to refer to other website or other applications in otherwords referring other url.
    So your workaround would be relaxing your requirement and redesign your application.
    This is my view point.Probably some other expert sdn'ers might have better one you know.
    Success !!
    BTW- if you decided to follow nagarajan suggession then you have to use URL generator to generate the URL.Using static URL is depreciated and also wont work in your Customer places.
    Message was edited by: Baskaran Senthivel

  • How lock or hide URL LOCATION in a external windows WDA

    Hello guys...
    I am traying to hide or block the URL which i am using in a external window. I have coded this:
       call method lo_window_manager->create_external_window
    exporting
       url            = lv_url
       modal          = abap_true
       has_menubar    = abap_false
       is_resizable   = abap_true
       has_scrollbars = abap_true
       has_statusbar  = abap_false
       has_toolbar    = abap_false
       has_location   = abap_false
    receiving
       window         = lo_window2.
    *lo_window2->open( ).
    But, firstly the MODAL parameter doesn't work with external windows (It's Obsolete) So I can't use it, because I have to forbid the navigation between windows. I tried to close the main windows before open URL but it doesn't work either.(Appear a waring that you window wants to be closed) so then I used that:
      lo_windows->fire_exit_url_plg(
        url = lv_url                              " string
      lo_windows =   wd_this->get_windows_ctr( ).
        lo_windows->fire_exit_close_plg(
          close_window = 'X'                     " wdy_boolean
    That is Ok BUT I can't BLOCK the URL or even HIDE it. SOMEBODY give the light.!!!!! pleaseee..

    You are complexing with 2 problem with 2 options.
    1. Blocking url on the external window
    2. Closing the previous window.
    1. parameter model is indeed obsolete, so only has location parameter  would help you to block the URL and it will not work for the requirement 2.
    2. When you use exit plug and navigate to new URL, your window would close but new window would not open with address bar blocked.
    No solution is fitting for your both requirements.
    Probably you have seen this example application WDR_TEST_EXIT_WITH_CLOSE
    See if it fits in your case.

Maybe you are looking for

  • Problem in settlement of rework order

    Hi   I have raised a production order and settled all the products in the order. But in quality inspection i have cleared only some quantity and made some quantity rework. I have raised a rework order for the same and settled the rework order.But the

  • Canon MX870 prints incredibly slow via WIFI

    I have an MX870 with an iMac quad core running OSX 10.6 and a netgear router.  I don't use a USB cable because the run would exceed 15' because of the way the furniture is layed out where the computer and printer are, and the USB cable is too long to

  • COLLECTION in PROCEDURE

    how I pass a collection data through OUT parameter in PROCEDURE SQL>create or replace type mytype as object(eid number,empname varchar2(20)); SQL> create or replace type mytype_nt as table of mytype; SQL> ed Wrote file afiedt.buf 1 create or replace

  • Custom kernel compilation with abs..

    Been trying out custom kernel compilation with abs, since i only know the regular make menuconfig style, thought that this would be a good thing to learn. here is my kernel pkgbuild (showing only the part that i changed): # Contributor: dibblethewrec

  • Lintrack 2.0 released.

    I don't know if this is a best place to post this info, so please moderators move it if you find better. I'd like to proudly present new Linux distrubution - Lintrack. Our team have just made first public release available for download. I'd like to t