Close window without using plug exit
Hi experts,
How can I close a window without using a plug exit? By implementing some javascript in the Java code, or other options?
Thanks in advance.
Edited by: Alaa Cherqaoui on Nov 28, 2008 5:06 PM
Hi ,
You can use the "destroy" method for window.
For example:
you need to create WindowInstance varibale of type:
com.sap.tc.webdynpro.services.session.api.IWDWindow
Then inside the action that suppose to open this window you write the following:
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("NameOfTheWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
window.setWindowPosition(WDWindowPos.CENTER);
wdContext.currentContextElement().setWindowInstance(window);
window.open();
And inside the action that suppose to close this window write the following :
wdContext.currentContextElement().getWindowInstance().destroy();
Hope it's help...
Regards,
Shimon.
Similar Messages
-
Opening URL application in same window without using plugs.
Hi,
I am working on ESS and MSS.
When user click on a button , an application has to open in the same window. As it is standard application I do not want to create plugs in the windows.
Please let me know is it possible or not. If yes please give me suggestions.
If it is not possible please suggest me how to do it with plugs.
Regards,
sarath.
Edited by: sarath kumar on Feb 18, 2010 4:51 PMHi Sarath,
For navigation Inplace ( i.e in same window ) you can use launchpad customizing.
Search for FPM cookbook in the net and you will know how to do launchpad customizig ( Transaction LPD_CUST ).
When you configure launchpad then in Advanced paramters under the group potal parameters you have option of choosing Navigation Mode as Inplace.
Regards
Manas Dua -
My macbook froze up. Finger gestures work, but I can't close out of any windows by clicking on the red "X". How do I close out the windows without using the track pad?
Command + W will close a window. Command + Q will quit a program.
-
How to "kill" AWT Event Queue thread without using System.exit()?
When I run my program and the first GUI window is displayed a new thread is created - "AWT-Event Queue". When my program finishes, this thread stays alive and I think it causes some problems I have experienced lately.
Is there any possibility to "kill" this thread without using System.exit() (I can't use it for some specific reasons)All threads are kept alive by the JVM session. When you use System.exit(int) you kill the current session, thus killing all threads. I'm not sure, though...
What you could do, to make sure all threads die, is to make ever thread you start member of a thread group. When you want to exit you app, you kill all the threads in the thread group before exit.
A small example:
//Should be declared somewhere
static ThreadGroup threadGroup = new ThreadGroup("My ThreadGroup");
class MyClass extends Thread {
super(threadGroup, "MyThread");
Thread thread = new Thread(threadGroup, "MySecondThread");
void exit() {
//Deprecated, seek alternative
threadGroup.stop();
System.exit(0);
} -
Any way to open new browser window without using image maps?
Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
Here is the link:
http://www.susieharperdesigns.com/gallery_beads.html
Any help is greatly appreciated.Your missing a value on the HREF. In your code you have this:
<area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
</map></div>
and it should be this:
<area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
</map></div>
If you fix the code on all your beads, it should work.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Connect as sysdba between Linux and Windows without using password
hello
Hello
I need to connect as sysdba between Linux and Windows without using password for the sys user
Sqlplus /@string_connection
Plz help meDuplicate post:
Connect as sysdba between Windows and Linux
Actually you have been given the answer in your above thread. You need to read the Oracle documentation. Search password file at tahiti.oracle.com
regards -
Opening new window without using javascript..
Hi,
This is the second time iam posting this question. I didnt get satisfactory answer to my previous post..
Is there any possibility of displaying a new window on button click using only JSF and without using javascript? if yes please tell me how to do..
Thanks...Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
Its working fine now without JavaScript.
Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
Is this possible? Please give me an idea to do this.
Thanks. -
Closing a JFrame without using System.exit(0)
Hello all,
I'm writting an application at the moment that uses a JFrame as an "about box" invoked when a menu item from another JFrame is selected . The about box is set to undecorated, and I have set up an Thread to handle an animation of the credits that move up slowly. I have also added into it code to play a sound file while the credits are running.
I wanted to have it so that the user can just click once anywhere on the Panel area of the about box, and that would close the about box window and stop the sound.
I can get it to stop the sound on click no problem, what I'm having issues with is closing just the about box Frame. I've used System.exit(0) but this closes the original application, which I dont want it to do. I've been looking at online example code and I've found that dispose() might work... Problem is my JFrame for the about box is initiated in the main applications JFrame under an eventListener for the menuItem 'about'. The sound file is played inside the JPanel of the about box. And the listener to close it is located in the same place ( about box JPanel ).. does anyone know how to get this frame ( initiated in main applications JFrame ) and dispose of this frame through code located in the JPanel of the about box.
I hope this is descriptive enough for you.
Please let me know if you have any questions about my question.
Many thanks,
Mark.It seems you are asking how to find the parent frame of a Component that you know is within a frame?
You can getParent() of the component. If it is a frame (instanceof) - dispose, else check for the getParent()...
If you don't want to code it yourself use SwingUtilities.getWindowAncestor(Component) to get the Window in which the panel is.
HTH
Mike -
Can I reposition windows without using mouse?
I'm using a third-party application which, when opening a new window, insists on putting the title bar at the top of the window underneath the menu bar at the top of the screen. This occudes the title bar and makes it impossible to click on it to move the window elsewhere on the screen. I also can't minimize or maximize the window because those buttons are also on the title bar.
Is there a method in OS X that will let me select a window and reposition it on the screen without using the mouse to click-and-drag? (Perhaps using the arrow keys somehow?) Or alternatively, is there a way to automatically reposition all the open windows so that the title bar would become visible (like the tile function I remember from some past Mac version of Word)?
FYI: I've tried Exposé, but that only brings up a "ghost image" of the window. When I click on it, it immediately heads back to its "occluded" position. I've also tried resizing and rotating the screen in System Preferences. That doesn't work either.
Thanks for any help you can provide. This is driving me crazy!What about enabling Spaces and assigning the window to a different Space - does that have an effect on how the application is positioned?
What about pressing cmdshift/ to open the help menu. Then type in "Zoom" (assuming that command exists within the application's menus) and press enter. This should have the same effect as pressing the green plus sign in the application top left corner.
Note that the menus of your application may have several zoom functions. For instance Firefox 3 has Zoom In and Zoom Out under the View menu (for zooming the webpage) and Zoom (the green plus function) for maximising the application window. This means I have to use arrow keys to find the right one in the help menu. However, unless your application is too far "up" or beyond the top of the screen, you should see the menus when you use the arrow keys - a floating blue arrow appears next to the command.
I found a commercial application that allows moving windows with the keyboard, MercuryMover:
http://www.macupdate.com/info.php/id/26411/mercurymover
(see also here http://www.macosxhints.com/article.php?story=20080428064742892)
I haven't tried it myself but perhaps it will help.
/p
Message was edited by: pullman -
Force end of session when user closes window without logging out
I want to protect sensitive employee data. Does anyone know how to force a user's portal session to be terminated after a user closes a window with the "X" instead of logging out?
Web application is connectionless. So there is no way to tell if a user has disconnected. If the user diligently logout, then invalidating a session is no problem. However, if you wish to invalidate the user upon closing of window, I suggest you drop that idea and change to different approach.
1. If you are trying to impose single logon policy, you may consider invalidate an existing session if the same user login again.
2. If you really need to invalidate a user session as soon as he is inactive (or closes window). I suggest you set a very small timeout interval (maybe 3 minutes). Then for all the pages, implement a simple invisible IFRAME that will keep refreshing itself (say every 2 minutes) on a dummy JSP/servlet URL. The fact that this IFRAME always hit the URL at 2 mins interval will keep the user session valid. Once the browser window is closed, the session will be invalidated in max 3 mins time.
The final suggestion is to drop that idea altogether, the point is ... implement such feature is like twisting web application to do something that it is not design to do naturally. -
How we close Views without using Java Script
Hi All,
can you please suggest me how i close view with out using java script.
if possible please reply with code.
Thanks
SivaHi Siva,
You can do this either by hiding your window or by closing the window. Following is the sample code to do that
IWDWindowInfo windowInfo = null;
IWDWindow window =null;
windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo).findInWindows("<<WindowName>>");
if(windowInfo!=null)
window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.hide();
Try with this code, might be useful for your scenario.
Thanks,
Sandeep -
Can't close window without quitting?
I've noticed that if i try to close the iPhoto window (using Apple+W or the red gel button) that the whole program quits.
This isn't in line with how the other apple products work is it? Normally I can close a window, yet the program remains active. The advantage being that I can open a new window very quickly instead of having to wait for the library to be created again.
Is this in line with everyone else's experiences?
Thanks,
BenHi Benjamin,
For programs that normally only use one window, like iPhoto, the program will quit when the window is closed.
I either "Hide" iPhoto or click the middle button to swish the window into the dock, when I want to hide the window.
Lori -
Can i create a home window without using a NIB file
I hate interface builder, it is a really counter-intuitive piece of junk. Please don't try to convince me otherwise I prefer to do it all in code. Right now i have my whole product running dynamically, creating all the interface objects programmatically as my positioning is all calculated on the fly.
However I still have one NIB file (MainWindow.NIB) that creates the home window and somehow links to my AppDelegate class, which is the startup class for my app. I see that my main.c routine calls UIApplicationMain() which somehow loads the main nib (hidden magic here), and then eventually my AppDelegate() method which is of calss UIWindow() gets called with an initialize() call followed by applicationDidFinishLaunching() call and off we go.
Can I create the window dynamically by not using NIBs? Now that we have ipad and iphone to contend with, I would want to create a window that is either 320 x 480 or 768 x 1024 depending on what machine I am on. I would like to get rid of the NIB because I don't understand the wiring stuff and I tried to make a NIB myself but now get a cryptic error message, and anyway the NIB has a fixed size and my app wants to be dynamic now that we have two screen sizes.
The second part of the question is how do you know what kind of machine you are on? I don't see a Gestalt() routine like in the old mac days so you can tell what machine it is.There are always less-informed people who think that a STATIC development tool is somehow more powerful than a flexible dynamic interface computed as one goes. The idea of a static screen form that you control dates back the 80's; modern interfaces are DYNAMIC and interface builder cannot construct those; sure it can perhaps help you lay out things, but if the user turns on certain features then new controls are visible. We have built products with over 500 controls in them and as only perhaps 25 are needed at any one time the software rearranges the screen in the most optimal form at all times. The more advanced the product the more one chafes at a static design tool.
-
Popup window without using a command button or command link in Adf10g
Hi,
I need to show a table in a popup window on clicking in a component in the jspx page. The component can't be a command button or a command link, so i can't use 'useWindow' or 'useDialog'. What can be done in such a case. I am using Jdev version 10.1.3.
I doubt if <af:dialog> or <af:popup> components are available in ADF10g.Hi,
There's a way, but frakly I would try to change the functional side instead of trying it. Anyhow, if you want to do it, you'll have to use a combination of autoSubmit/onclick along with DialogService.launchDialog (accessible through AdfFacesContext), but that's a very obscure part of the framework.
Regards,
~ Simon -
How to convert date without using conversion exit?
hi!! Guys,
please can anybody help me how to compare date which is not in actual format
i.e. (when comparing BKPF-budat with TCURR-gdatu in where condition of a Select query its giving syntax error "when you use the addition 'fOR ALL ENTRIES IN itab' the fields gdatu and it_bkpf-budat" must have the same type and the same length. its very urgent...
thanks in advance.
akanksha.try like this.
data : year(4),
mon(2),
day(2).
in itab declare field cbudat(8) type c.
loop at itab.
year = itab-budat(4).
mon = itab-budat+4(2).
day = itab-budat+6(2).
concatenate year mon day into itab-cbudat.
modify itab.
endloop.
now use select for all entries and check gdatu = itab-cbudat.
regards
shiba dutta
Maybe you are looking for
-
But when I de-authorise and then re-authorise it says it's already authorised and then the same window pops up saying "It can't be synced because this computer is no longer authorised for purchased items that are on this iPad. Battled all day. Remov
-
Help needed in schema and flow of my DB
I am dealing with a large scale of data and the senario is that. i am getting data from stream , i have developed an aplication called AClient (in C++) which is getting data from stream and putting that data live in my db table called live using ODBC
-
Value in KEAW but not in S_ALR report for a particular account
Hello, Find value in CO in KEAW for a particular account but not in S_ALR_87013542 report . The account belongs to Cost of sales category . Can someone please inform the reason for this posting not appearing in S_ALR but in KEAW . With regards, Mrina
-
How to reinstall bootable system 9 in a iBook G3/900 900 MHz PowerPC 750fx
Hi all, I have two machines bootable with OSX and OS9 PowerPC G4/1.25 DP (Mirrored Drive Doors) dual 1.25 GHz PowerPC 7455 (G4) and iBook G3/900 900 MHz PowerPC 750fx (G3) I have some MACOS9 software which just doesn't work in classic mode with any O
-
I was told that with Mountain Lion I would be able to view my computer through the router onto my TV screen through Apple TV. How?