on 10-21-2012 8:48 AM
Hi Experts,
I am trying to create popup window in webdynpro java i am getting error (IWDWINDOW CANNOT BE NULL)
Code is:
1.
IWDWindowinfo info=wdComponentAPI.getComponentInfo().findInWindows("Win2");
IWDWindow window=wdComponentAPI.getwindowManager().createModalWindow(info);
window.setWindowSize(100,100);
window.show();
2.
IWDWindowinfo info=wdComponentAPI.getComponentInfo().findInWindows("Win2");
IWDWindow window=wdComponentAPI.getwindowManager().createModalWindow(info);
window.setWindowSize(100,100);
window.show();
wdContext.currentNodeElement.setAtt(window); (Here node is the value node,att is the value ttribute of type IWDWindow)
Let me know where am i doing mistake please
IN the above scenario i write createwindow() also still i am getting problem
Please help me ,
Thanks in advance,
Khaja sk.
Hi,
Both the codes mentioned above are correc and it should work fine if you have created window with the same name as mentioned in code.
So, Please make sure that window name you created is "Win2" only, not "win2" or change it to "win2" in code mentioned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you should call show() last after setting context attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
moved to Web Dynpro Java by moderator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi shaik
Have you created a window "Win2" in your component?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.