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.

Similar Messages

  • 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

  • Can't move tab to new window (tabs are locked) or open new window

    Hello All,
    I have updated Firefox to 28.0 and I am still having the issue with not being able to move tabs to individual windows, open individual windows or click on a web link to open a new window. If I right click on the link it will open in the window as a new tab but will not open as an new window. Can someone tell me if there is a lock on tabs/windows that freezes them? Please help.

    Thank you for the input - unfortunately this did not change anything. I removed all extensions and even reloaded Firefox after cleaning out all the hidden files and I still experience the same. I can hit the [+] and get a new page but I cannot open a link in an email unless I right click and open to a new tab - although it will not allow you to open to a new window. you cannot grab a window that is open and pull it so that it is it's own separate window. I have tried this using a different application and it does work without any issue. I do not want to use this application because I like using Firefox -- any suggestions would be appreciated. Just do not know what to do to fix this.

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

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

  • Release of lock entry when external window closes.

    Hi
    I have created a external window for some URL which is created for VF02 transaction.
    SET PARAMETER ID 'VF' FIELD lv_drftno.
    CALL TRANSACTION 'VF02' AND SKIP FIRST SCREEN .
    Now my problem is regarding lock entries.
    The external window which is created is having a by default close button in upper right corner like explorer.
    and if the user use this button to close the window in middle of the transaction the entery get locked.
    So there is any method to release that entry on closure of window?
    or can we get the event when user press that close button?

    If you are using it in TEST MODE swtich on the flag TESTRUN of the BAPI and after that even if you COMMIT the changes will NOT be there in the DATABASE.
    Then the locks will be released and changes are also NOT committed to DB if you have the TESTRUN flag on.
    Its not recommended that you unlock the locks manually.
    Regards,
    Ravi

  • 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

  • My Mail application will not open a window on my desktop?

    Anyone else had this problem of Mail not opening on their desktop after having done a software update- any suggestions how to get it to open? I am on 10.9 OSX operating system now.

    Generally, the ikons you'll place on your desktop, (and all of those which reside on the DOCK) will be 'aliases,' which simply direct the machine to follow the path to the Application itself. 
    Your 'Applications' folder should be visible in the left-hand collum on any open window. Open it. If an Application will open directly it means that the path to the alias was broken and you need to delete it and make a new one, or track down its real location through the finder. Try not to ever place Applications themselves on your desktop.
    After 8 days without Mail, I just succeeded at restoring mom's connections on her iMac. I'll be happy to make more suggestions as needed...

  • Closing the NonModel External Window in Webdynpro

    Hi,
    I have a Webdynpro Application, in which i used to call the webdynpro application in a Separate external window by using the below code.
    String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
    String url = URLGenerator.getApplicationURL(depObjectpart) ;
    *// Code to Popup the View in External window by calling the Application                          *
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Update View");
    wdContext.currentContextElement().setCtx_WindowInstance(window);
    window.setWindowSize(625, 225);
    window.setWindowPosition(50, 75);
    *window.setTitle("Update View");          *
    window.show();
    This opens the Separate external window and after editing some fields, I need to Update the DB and close the window.
    When i try to use the code,
    window.destroyInstance();
    The window is not getting closed. I have used the window instance as the static IWDWindow window, still i am not able to close the window.
    Anyone Please let me know how to close the External Non Model Window.
    Thanks and Regards,
    Sekar

    Hi Sekar,
    my suggestion is to open another window that contains html code which invokes opener . close() on the parent window - your window to be closed. This worked for me and made my day.
    I open an HTML file created as IWDCachedWebResource as nonModalExternalWindow over a LinkToAction which invokes onActionClose. There is a second window opening for a short moment which will be closed by its onLoad event.
    The HTML code is basically sporting a < script >-section which contains a call to opener . close().
    regards,
    Christian
    Ps: sorry, I can't post the code - it simply does not work... Had the same problem days ago with another thread .

  • Runtime exec opens new window

    Hi, I am using Runtime.exec to run an external application in Windows2000. � can read its output and i can destroy it without any problems.
    But when i run my java application with javaw , the external application i run with rt.exec opens new window(without output texts, empty) . just output command windows which opens when i run the external app. from a command prompt.
    If i run my java application with java.exe then then external application DO NOT open new window and run correctly. But this time my java window stays on desktop, and that's not any good for a Windows Application.
    In both cases everything runs OK. The only problem is the command prompt windows.
    Is there a solution when working with javaw.exe ? or hide the window when running with java.exe
    Thanks all.

    bug with ID: 4244515

  • Non-Model External window issues

    I was trying to open non-model external window but application isn't opening the window, can any body tell me whats wrong with my code:
    TestReport report = new TestReport();
    byte[] pdfData= report.getReportData();
    IWDResource pdfResource = WDResourceFactory.createResource(pdfData, "TestReport.pdf", WDWebResourceType.PDF);
    String urlToFile = pdfResource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
    IWDWindow pdfWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToFile, "View Report");
    pdfWindow.show();
    Actually I was trying to open pdf document in external window but nothing is opening, so I just made it simple and nothing happened.
    IWDWindow pdfWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.yahoo.com", "View Report");
    pdfWindow.show();
    thanks

    jawed,
    IWDWindow pdfwindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.google.com","google");
        pdfwindow.show();
    is correct.
    Not sure that why it is not showing. check the action is being called.
    try casting too
    IWDWindow pdfwindow = (IWDWindow)wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.google.com","google");
        pdfwindow.show();
    but this one not needed. just give a try.
    in firefox, you can set enable popups to show popup windows
    nikhil
    Edited by: Nikhil ßos on Aug 6, 2008 10:30 AM

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

  • Full screen Safari doesn't open new windows

    Hi,
    In my Safari preferences I have "Open pages in tabs instead of windows" set to "Never".
    When Safari has at least one window that is not in full screen mode, then links from other applications seem to open new windows perfectly fine.
    However, when all Safari windows that are open are in full screen mode, then links keep opening in tabs in on of those windows.
    How can I make Safari to just open a new window all the time, even when I only have full screen windows open?

    Hi ..
    Safari doesn't recognize:   mydomanin.direct   as a URL. That's why it's triggering a Google search.
    That's why www. works.

  • Closing the external window

    Hi,
    I am new to webdynpro ABAP, please someone help me in how to close the extenal window, from the application running on the external window.
    I am actually creating a URL for a webdynpro component and I am running it on the external window, now I want to close the application browser, so that I can go back to the source window.
    Regards,
    Kamaraj

    Hi,
    if you are using URL external window then they are two separate sessions. You have no connection as parent and child window and nothing forbids the user to go from one window to another window.
    If this is really your use case and you want to close your own application/window by an button action or event handler method. Then you have to find out a way to close your application by an action.
    see this forum discussion.
    [FORUM|Re: Close External Window in Web Dynpro Application]

  • If Firefox is set as the default browser, and any application attempts to open a new window, this fails and I get the error "Firefox is already running..."

    Here is what I am running:
    Microsoft Windows 7, Service Pack 1, Fully updated to 4/10/2012
    Fresh Install of Firefox 11. No add-ons enabled as a result of troubleshooting.
    I am a user with administrator rights
    UAS is disabled.
    To begin, this has been going on Since Firefox 10 or so. A few months now.
    I am able to open Firefox. My add-ons worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, 4chan extension) had no problems. Firefox is set and has been set for the last two years as my default web browser.
    However Since approximately Firefox 10 or so, maybe before that, If I have a Firefox session open, and any other application attempts to open a session in a new window, I get the Firefox is already running, but not responding error."
    I attempted to follow troubleshooting advice already posted (look for parent.lock files left behind [none present], multiple sessionstore.js files [none present], create a new user profile, attempted to clear out the "read-only" permission in windows 7, however as soon as it is cleared, the read only permission returns.)
    As a last resort, I deleted the Firefox folder, the %APPDATA%/Mozilla directory in its entirety, then utilized CCleaner to remove any and all references to Firefox in the windows registry, then did a full re-install, no extensions installed right now.
    I checked preferences and have the option "open new windows in a new tab" checked off. The problem persists regardless if this option is checked on or off. This problem persists in or out of safe mode, even with the brand new install.
    Test Cases:
    All cases:
    Firefox is selected as the default browser for windows 7
    Case 1: Open a firefox session. Utilize any other program that attempts to open a link to their website in a new browser window or new browser session. Experience "Firefox is already running" error
    Case 2: Open a firefox session. Right click on Firefox on the task bar. Select "open in new window". Experience "Firefox is already running" error
    Case 3: Open a firefox session. Select the Firefox Menu > New tab > New Window. A new window will actually open.
    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.

    Cor-el's suggestion resolved my problem. Apparently the MOZ_NO_REMOTE variable was set to 1 on my system variables. I never made it, and really have no idea how it got there, but deleting this variable and restarting firefox has resolved the issue. Thanks Cor-el!
    Marking case: Solved
    Solution: Verify the MOZ_NO_REMOTE variable is NOT set to 1. This can be achieved by simply deleting this variable.

Maybe you are looking for

  • Airport loses connection to Internet under heavy load

    Often, all the computers in my house will lose their Internet connection. However the network stays up just fine. There are both wired and wireless computers. A Netgear 16-port switch handles all the wired machines. The only solution is to pull the p

  • Upgrading iWork says "An eligible Keynote application was not found in the location /Applications/iWork '09". But it's wrong!

    iWork CD came with the iMac three years ago. Need to upgrade Pages and Numbers from Pages '09 Version 4.0.4 etc. as I use iPad a lot, iCloud and have Mountain Lion installed. Downloaded the package but clicking to install says "An eligible Keynote ap

  • Convert chinese character to unicode

    hello,i have a problem. how can i know the unicode of chinese character in a file? like this character ' 称 ' in a file a.txt then how can i do to read the a.txt file then get the unicode of the character? really need help..

  • Why can't PS be more like LR ?

    I somehow had the impression that one could use PS CS5/6 in much the same way as Lightroom, in respect of 'continuous editing'. In LR, if I close and restart, my situation is exactly as if I had stayed continuously open. I can backtrack, do whatever

  • "Screen Management" in the RF

    Hello folks, I am trying to add a new entry to "Screen Management" in the RF MDE customizing. I input my module pool and all the remaining fields. Then I get the error msg: ENTRY "Zmodulepool" is not defined in table T3130E. There is not any place I