on 03-30-2005 11:44 PM
Hi:
When I click on a button I would like to open a new I.E. window
I have used the following code:
**************************************************
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Window1");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.open();
*******************************************************
but this one opens a popup window. I wanna open a new window independent of the current window.
Any suggestions.
Thanks,
Praveen.
Hi Praveen,
If u want to open a external window u have to use
IWDWindow window = wdComponentAPI.
getWindowManager().createExternalWindow("URL", "Title",false);
Follow the below steps
1.Create a different application(app2) and component(comp2) linking to the window2 in the same project
2.Deploy the app2.
3.Go to ur view implementation in the window 1 .
4.write the below code snippet to get the url
String applicationURL = WDURLGenerator.getApplicationURL(ProjectName, App2);
5.Open external window using
IWDWindow window = wdComponentAPI.
getWindowManager().createExternalWindow(applicationURL, "Title",false);
window.open();
Now ur window 2 will be opened in the new I.E
To have more info on WDURLGenerator api.
Check this link for WDURLGenerator.
http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm
Hope this solves ur problem.
Regards,
Sowjanya.
Message was edited by: Sowjanya Chintala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sowjanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.