cancel
Showing results for 
Search instead for 
Did you mean: 

Open a new I.E window from web dynpro

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Sowjanya.

Former Member
0 Kudos

Hi Praveen,

There is a therad similar to what you are looking for but not exactly same

(here he is accessing word doc, your case IE window ) so you have to provide URL that's it

Hope this helped you

Regards,

RK