cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating popup window

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

amolgupta
Active Contributor
0 Kudos

I think you should call show() last after setting context attribute.

anja_engelhardt2
Active Contributor
0 Kudos

moved to Web Dynpro Java by moderator

Former Member
0 Kudos

Hi shaik

Have you created a window "Win2" in your component?

Former Member
0 Kudos

Hi Lou,

ya i already created win2(second window name)  in component

Thanks in Advance,

Khaja Shaik.