on 10-15-2007 7:22 AM
In one of my views i have a button...when i press that a window opens up with a drop down list.......when i select a value from the drop down n press ok it throws an exception....
com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Tried to close window ID MPCELLJBfa title Select a Reason, but was not on top of the queue. Top window ID MPCEf7 title Docket Details!
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.popModalWindow(ApplicationWindow.java:161)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doClose(WebDynproWindow.java:398)
at com.sap.tc.webdynpro.clientserver.window.Window.doClose(Window.java:153)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:270)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:237
what cud b the way out...
null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kanwalpreet,
You could use the following code in the close button of your window.
IWDWindow window = wdContext.currentPopUpElement().getWindowInstance();
window.destroy();
Value Node -- PopUp
|____Value Attribute -- WindowInstance of type com.sap.tc.webdynpro.services.session.api.IWDWindow
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if it's popup window, did u handle code to close the window. I mean you need to store the ref of IWDWindow in the context attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kanwalpreet
For basic idea please refer to the following link
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Boxes in WebDynpro</a>
Go Through <b>page 16</b> of the PDF Document
Regards
Chaitanya.A
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.