Close main application window in WD for Java

Hi there,
Is there anyway I can close the main application window(not popup) programatically.
I tried calling the exit plug in the interface view controller, but doesnt seem to close the window automatically.
I am having 2 components, one calling the other..
Any help will be greatly appreciated.
Many Thanks
lm

Hi LM,
Check Re: Close the parent window especialy Nibu`s suggestion.
<i>
1) In your Interface view, create an exit plug with a parameter Url of type string.
2) Add your Interface view controller to your current view's required controller. (in properties tab of your view)
3) After opening the new External window fire the outbound plug as :
wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
</i>
It should work for you.
Best regards, Maksim Rashchynski.

Similar Messages

  • WD ABAP: close main application window without logging off

    Hi all,
    I need to fire a url (like www.yahoo.com) when a button in a popup window is pressed. The popup as well as the main window need to be closed but not logged off. I was able to close the popup but not the main window.  What are the steps in doing it and if u could provide the code too, it would be helpful. 
    Thanks,
    Sravanthi

    Hi Sravanthi,
    Yes, this is possible by using the suspend/resume functionality. More information can be found here:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011</a>
    Best regards,
    Thomas

  • Where are my screens!!??? All my task windows work but the main application window where I Can see my work is missing!

    All my task windows work but the main application window where I Can see my work is missing!
    Help Me!
    I have two operational websites that I can't acces!

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • How to change the style of the main application window shell

    Hello,
    I am migrating my application from eclipse 3.x to eclipse 4.3 and I want to set the style of the main application window i.e. the shell that is created in application MTrimmedWindow in e4.
    Earlier we were doing it using
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(0, 0));
    configurer.setShowCoolBar(false);
    configurer.setShowStatusLine(false);
    configurer.setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE);
    But now in e4 application after reading some forum replies I got to know that custom renderer needs to be created for that.
    I created my own renderer extending WBWRenderer and as I wanted to change the style of shell I am overriding createWidget method.
    Now the problem is that if I am just creating a new shell in this createWidget method then it is not working. Might be because this method has a lot of other code also.
    So I copied all this code into my overridden method of createWidget & just changed the style of shell according to my need. Then this worked but for this I have to put some private methods also into my custom renderer class from WBWRenderer.
    SO my question is to confirm that if I am doing it in a right way?
    or is there any other mechanism to do this in a more efficient way?
    Thanks

    This can now be solved with a specific "persisted state" key flag, as documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=386951 . For example to realize a NO_TRIM window, add the key/value styleOverride/8, where 8 is the value if you get the numeric of
    int val = SWT.NO_TRIM;
    System.out.println(val);
    Hey Zugi: Liebe Grüsse! Master UIBK/2010

  • HTMLLoader, main application window and scrollbars

    If I instantiate HTMLLoader with "new HTMLLoader.createRootWindow()," scrollbars show up correctly when text overflows the set width and height. I can add it to the stage, but I'm still left with an empty popped up native window
    If I instantiate HTMLLoader with simply "new HTMLLoader()," you can add it to the stage, but it doesn't include scrollbars when the window overflows with text.
    What I want to do is incredibly simple - create a new HTMLLoader instance, have as part of my main application's stage, and get the benefit of the built-in scrollbars.  Why is that so difficult?

    OK - my problem with the HTML Control is I can't seem to add it to a child custom class.
    i.e. - I have my main Air app and a custom class extending UIComponent. I add the custom class to the stage in the main app, and in the custom class, add an HTML Control.  I'm also adding a different HTML Control to the main app.
    Only the HTML in the main app actually shows up. No errors given. What am I missing here?
    Main Air app mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.controls.HTML;
    var _myComp:Comp;
    private function init():void {
    _myComp = new Comp();
    _myComp.init();
    _myComp.x = 200;
    _myComp.y = 200;
    addChild(_myComp)
    var html:HTML = new HTML();
    html.htmlText = "Text on main application window"
    addChild(html);
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    Comp Class:
    package {
    import flash.display.Shape;
    import mx.controls.HTML;
    import mx.core.UIComponent;
    public class Comp extends UIComponent {
    public function Comp() {
    public function init():void {
    var shape:Shape = new Shape()
    shape.graphics.beginFill(0,1)
    shape.graphics.drawRect(0,0,200,400);
    shape.graphics.endFill();
    addChild(shape)
    var html:HTML = new HTML();
    html.htmlText = "Text Inside child component";
    html.x = 200
    this.addChild(html);
    trace(html.htmlText)

  • How to close sub-application without close main-application?

    My main application has a menu which is used to open sub-application window. When I want to close the sub-application, I do not want to use System.exit(0), because it will close the main-application too.
    And if I use setVisible(false), the sub-application remains in memory.
    How can I close a sub-application clearly and keep the main-application open?

    Stephen:
    Some other object may be holding reference to this object.
    Here is how you debug such as problem.
    1. Run your app in the IDE's debugger.
    2. After you think all refs to the object should have gone away, pause the debug session.
    3. Using the View/Debug Windows/Heap menu, bring up the heap window.
    4. Right mouse click on the heap window. Enter the class name (package qualified) of the object which isn't being collected.
    5. Then, find the object that instance. Select it.
    6. Do right mouse click on that and select 'Show Reference Paths.'
    It will show paths to this object. It will show you who's holding ref to this object, preventing it from being garbage collected.
    Thanks.
    Sung

  • Is new Windows Mobile VM for Java ME in new SDK 3.0 for common users?

    Hi,
    There are bunch of buggy VMs for WM Platform such as Esmertec JBED, Esmertec JBLEND, IBM J9 etc. They have lot of bugs and they don't support neccessary JSRs. Now I have read about Windows Mobile integration in new SDK 3.0 EA for Java ME - I undestand that there is a new VM for WM from Sun, is that right? But when I installed CAB version, it seams it is just for on-device debugging with connected Wireless Toolkit on PC. I can't launch midlets located in my WM device on it. Is there also VM for common users? So they could install virtual machine and then install their midlets? I think many developers and users would apreciate it. Or is it at least in plan to release such VM?

    Jackson_Bill wrote:
    What IDE are you using and what platform?Read first.
    Moh Bob wrote:
    I'm using J2ME platform SDK 3.0
    db

  • Hangs, won't close, odd error window on start about java script before opening browser

    tried to install latest version but got message that needed to close mozilla windows already running. could not install. An error window opens titled "JavascriptApplication reads:
    "Exc in evhandl:Type Error,this.oRoot,enable is not a function"
    System now hangs terribly, especially on closing, and the error message comes up each time try to open a web page with mozilla.

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with preferences and rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default value.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • Windows COM interface for Java?

    Are there any COM-Java interfaces available so that a windows application can call a Java application and receive the result back?

    vice-a-versa u can do

  • What happend when i am minimizing a Jframe (main application window)

    i notice something weird in my Swing application
    i am tracking the "Windows task manager" and i see that
    when i minimize the main frame and
    the memory reduces
    maximizing the application back make the memory go back again
    bet using less memory this time
    how come ?
    thank you

    [Bug ID #4412569|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4412569]
    Closed as "Not a Defect." It was/is a Window's quirk. Native applications (ex: Notepad or MSPaint) should do the same thing on your computer.

  • HT1430 how do I close an application, particularly an app for a radio station that I need to turn off

    I need to be able to close apps, particularly radio stations that I use on my iPhone

    double click Home button, then swipe up on each open app.

  • Exit button that close me the window in personalize

    Hi forum:
       I have one dynpro application in the personalize window of the EP6.40, when i give click in this link an windows is open, So, in my application in to this window i need to put an EXIT BUTTON, that close me the actual window, what can i do to do it?.... The password change application in that windows has it.. and do it..
    please help
    Joshua

    Hi Joshua,
    Are you familiar with close main application window in WD for Java ?
    Best regards, Maksim Rashchynski.

  • Need to Close WD App Window

    Hi Experts,
    I need to CLOSE my WD Application by triggering a action from a button(placed on the window).
    PS-> Please note i need to close main application window.
    I had gone thru the link:
    close main application window in WD for Java
    But this links talks about the WD for Java.
    Could you please let me know, how i can achieve that in WD for ABAP?
    Thanks in Advance,
    Amit

    Hi Hiedi,
    Thanks for the Information. Its working Fine. Now the problem is when i am pressing my button to close the window, a pop-up is coming asking for the confirmation.
    Is there is some way to avoid that pop-up message?
    Regards,
    Amit

  • Close Window (main application) in 2004s

    Hi,
    I have a webdynpro application (developed in 2004s)  where I have a close button. When user clicks close button, I simply need to close the browser.
    I tried using javascript:void(window.close())" as exit plug parameter from interface view still throws me an exception  com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Invalid URL=javascript:void(window.close())
    Is there any way to close the main application window.
    Thanks for your time and help.
    Best Regards,
    Shiva

    Hi,
    Go thru the below steps. Here u need to create a html file to close the main window.
    1. In your component's interface view, create an exit plug. Name it as - ExitPlug.It's type as "Exit".
    2. Create a paramater for this exit plug. Name this parameter "Url". It should be exactly like the same name.
    3. In your view add the interface view as a required controller.
    4. Create your HTML file. Let's say you call it Static.html.
    <html>
    <head>
    <script langauage="javascript">
    function closeWin(){                    window.close();     
    </script>
    </head>
    <body onload="javascript:closeWin();">     </body></html>
    5. Save this in the mimes folder for your DC under your package. You do this from the navigator view.
    6. Now use the following code:
    try {String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Static.html");wdThis.wdGet<your component name>InterfaceViewController().wdFirePlugExitPlug(url);} catch (WDURLException e) {}
    For more information go thru Re: JavaScript in WD link.

  • Why can't I close an application with ONE click???

    If I click the little red button with the 'X', why does the action not close the entire application, and why does the application remain active in the dock???????
    Isn't there some way (some setting maybe) that I can get a SINGLE click to close an application?

    First of all, you close a window, you quit an application. Closing a window and quitting an application are two different operations.
    But, if you press command-Q, you will quit the current application and close the windows associated with that application as a result.
    The Mac operates in this way to increase speed, minimize RAM usage, and use screen space more efficiently. Re-opening applications takes time, keeping a window open to keep an application going would take more memory, and in Windows, that window would get a button on the taskbar, which would rob screen space from other task buttons.
    The Mac is an exercise in speed and efficiency. It is the way it is for a reason. Just because you close an application window doesn't mean you're not going to use that application again in a few seconds. This functionality is more flexible and more oriented towards system performance.

Maybe you are looking for