cancel
Showing results for 
Search instead for 
Did you mean: 

Display popup inside applyResult method of ovs?

former_member188498
Active Participant
0 Kudos

Hi,

I have implemented an object value selector for a field.

Now what I want to do is to display a popup window when the user selects a row inside ovs popup (ie. inside the applyResult method).

The popup window (with ok and cancel buttons) is being displayed, but when I try to destroy it inside the event handler for a popup ok or cancel buttons, the exception gets thrown. The exception says something about No item found on the list??

I guess it has something to do with trying to display it inside applyresult method?

The details:

Popup is being displayed inside applyResult method of a customController (MaterialIndexCust)

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

	IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    
	window.setWindowPosition(WDWindowPos.CENTER);
	window.setTitle("Question");
    
	wdContext.currentPopupElement().setWindowInstance(window);
	window.show();

Here's the code from the event handler which is from the same custom controller :

        IWDWindow window = wdContext.currentPopupElement().getWindowInstance();
        window.destroyInstance();

The actual event had to be defined in another controller.

I've tried these things with IWDConfirmationDialog as well as my custom dialog.

Any help is appreciated.

Regards,

Ladislav

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member188498
Active Participant
0 Kudos

Solved long ago, just closing this thread

former_member188498
Active Participant
0 Kudos

Here's the exception:

java.util.NoSuchElementException

at java.util.LinkedList.remove(LinkedList.java:579)

at java.util.LinkedList.removeFirst(LinkedList.java:131)

at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.popModalWindow(ApplicationWindow.java:162)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doClose(WebDynproWindow.java:400)

at com.sap.tc.webdynpro.clientserver.window.Window.doClose(Window.java:195)

at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:288)

at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:260)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:149)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:707)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:229)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Former Member
0 Kudos

Hi,

I am guessing here:

What if you store the window instance in your component controller's context instead of the custom controller's context? Declare a context value attribute called WindowInstance in the component controller context.

Regards,

Satyajit.

former_member188498
Active Participant
0 Kudos

Unfortunately,

the same exception is being displayed.