cancel
Showing results for 
Search instead for 
Did you mean: 

Popup Window Runtime Exception

Former Member
0 Kudos

Hi,

I am working on EP7 SP 15.

I am trying to create a popup window but I have the following error:

The initial exception that caused the request to fail, was:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Parameter windowInfo must not be null.

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:1028)

at popapp.PopAppView.onActionCreatePopup(PopAppView.java:150)

at popapp.wdp.InternalPopAppView.wdInvokeEventHandler(InternalPopAppView.java:148)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

The source code of my methods is:

IWDWindow myPopup = wdContext.currentPopupNodeElement().getPopupAttribute();
	if (myPopup == null)
	{
		IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");
		myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
		wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
	}
	myPopup.show();

Can anyone tell me what is wrong in my source code ?

Thanks q lot for your help....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you already create the window "PopWinView" ?

This window must be created.

Regards.

Answers (6)

Answers (6)

Former Member
0 Kudos

Yes it is a window, it is working now !!

Thanks guys

Former Member
0 Kudos

But should I create a view or a window ??

Former Member
0 Kudos

Yes the window has already been created....

Any other solution ?

Former Member
0 Kudos

hi,

this is due to two reasons

1. u have not created this window .

IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");

so create this first.

and 2. the name of window is not spelled correctly.

Regards

Trilochan

Former Member
0 Kudos

Hi,

From Webdynpro explorer , if you navigate to windows and expand this are you able to see "PopWinView"?

If not create a window and embed the respective view.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

Have you Created " PopWinView " window , if not create the window and then check

Best Regards

Chaitanya.A