cancel
Showing results for 
Search instead for 
Did you mean: 

How to make an External IWDWindow MODAL

Former Member
0 Kudos

Hi

In Webdynpro Java, is it possible to make an External window MODAL?

I understand that this very possible for internal windows, but my requirement is that the window must be external and must be modal.

My code thus far is the following:

String url="http://<host>.<domain>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fX!2fcom.x.test!2fcom.x.app";
String title="Verification";
IWDWindow win=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
win.open();

If not possible, then is there a way to accomplish through javascrpting?

Your help ang suggestions will be much appreciated!!

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi All

Thank you for all the prompt responses. However I have tried out all the different options prior to posting this question on SDN.

My issue still remains: The new window must be external and must be modal.

From Valery Silaev's response to a similar question, I quote "It is not possible to create modal browser window (AFAIK supported by IE only)."

Therefore, I will pursue another way - perhaps by using WDPortalNavigation.

I will be closing this thread.

Kind Regards

RD

Former Member
0 Kudos

Hi,

Use thhe below code to create a modal window

IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);

// set the WindowPosition on the screen

window.setWindowPosition(300,125);

// and show the window window.show();

// Save WindowInstance in Context

wdContext.currentConfirmationPopupElement().setWindowInstance(window);

Thanks

Padma N

Former Member
0 Kudos
former_member192434
Active Contributor
0 Kudos

Hi RD,

just go throught this link, it has all the details.

http://help.sap.com/erp2005_ehp_03/helpdata/EN/0f/134540631d6f13e10000000a1550b0/frameset.htm

Thanks

Anup

Former Member
0 Kudos

I think you are looking to launch a new application with Web Dynpro component on a new window:

Write an action when to launch a new application, when the user click on specific action you can call the applciation URL in a new window as below:

public void onAction(com.sap.xyz.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onAction(ServerEvent)

StringBuffer strB = new StringBuffer("/webdynpro/dispatcher/xyz.com/abxyztest/TestApp");

IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strB.toString(), "Test");

window.show();

//@@end

}

Thanks

Krishna

Thanks

Krishna

Former Member
0 Kudos

H,

try this !


IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url, nameOfWindow, true);

regards

g.werner

Former Member
0 Kudos

Hi Gunter

Thank you for your response.

I have already tried :

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url, nameOfWindow, true);

Though this does not make the window modal. I have also read that the 3rd parameter which represents boolean modal should always be false(im not sure why).

I have decided to use some javascripting - though still investigating the best way or perhaps navigating from one framework to another..

Thank you