Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pop Up Windows - I keep getting Null Pointer Exception.

Hi All,

I need some help here, I am try to develop popup windows using Web Dynpro and while trying to save the instance of the Windown in the Context Attribute with the following code:

  IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("Windown2");
  

  IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);

  window.setWindowPosition(300, 150);

  window.open();



// EXCEPTION OCCURS AT THE LINE BELOW

  wdContext.currentPopupElement().setWindowInstance(window);

}

I keep getting an Exception at Line where I am saving the Instance, I tried to deploy the examples given in SDN and they have the same CODE and all they work fine, can anyone please suggest or help as to what I should do to get my program working, please I have been working on this for some but with no success.

Best Wishes,

John.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question