on 06-24-2009 7:25 AM
HI,
On clicking submit button i need to show the popup window.I wrote this following code:
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("CareHomesDetails");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.setWindowPosition(250,80);
window.open();
wdContext.currentContextElement().setCarehomepopup(window);
When i deploying the application .it showing the error
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getViewManagerFor(ClientComponent.java:319)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:82)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:93)
at com.sap.tc.webdynpro.clientserver.window.InternalWindow.<init>(InternalWindow.java:32)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:953)
Can any one provide me solution for this
Regards,
Prasad
Hi Prasad,
Use this code:
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("CareHomesDetails");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.setWindowPosition(250,80);
window.open();
wdContext.currentContextElement().setCarehomepopup(window);
Take care of the name of the window in the bracket. Its case sensitive.
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jain,
I had changed the code but still i am facing the same error.
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getViewManagerFor(ClientComponent.java:319)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:82)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:93)
at com.sap.tc.webdynpro.clientserver.window.InternalWindow.<init>(InternalWindow.java:32)
Can you please tell me why it happens
Regards,
Prasad
What happened? Is your error resolved? How did you resolve the error?
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.