on 06-20-2007 1:49 PM
does anyone know how to get current windows resolution? i want to set height and width to my external window so it will fit the screen.
I got nearly the same problem.
So how can I get the client resolution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check your mail... already sent... Please reward full points if it helps..
Thanks
Avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Paste your mail address here... I am sending you one application... How to do it...
Thanks and Regards
Avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following coding to open external window,
IWDWindow window=wdComponentAPI.getWindowManager().
.createExternalWindow("http://www.sap.com","SAP search website",false);
window.setWindowSize(100,100);
window.open();
Regards,
Suresh T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you wan to create an external window and set it's height and width them you can use the followinfg code
IWDWindowInfo windowInfo =
wdComponentAPI.getComponentInfo().findInWindows("DisplayPDFWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(500, 500);
window.show();
wdContext.currentWindowElement().setWindowInstance(window);
remember here "DisplayPDFWindow" is the name of your window under which you have your view. And also don't forget to create a context node of type type <b>com.sap.tc.webdynpro.services.session.api.IWDWindow</b> . In my code I have created a value node called WindowElement and under that I have created a value attribute WindowInstance of type <b>com.sap.tc.webdynpro.services.session.api.IWDWindow</b>.
To Close a window you can use the following code:
IWDWindow window =
wdContext.currentWindowElement().getWindowInstance();
window.destroyInstance();
Hope it helps. Please reward points if it helps..
Thanks and Regards
Avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.