on 08-28-2006 8:42 AM
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
Solved long ago, just closing this thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.