Skip to Content
avatar image
Former Member

Error while creating popup window

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 22, 2012 at 01:57 AM

    Hi shaik

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lou,

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

      Thanks in Advance,

      Khaja Shaik.

  • Oct 22, 2012 at 11:44 AM

    moved to Web Dynpro Java by moderator

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2012 at 12:46 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2012 at 11:40 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded