Hello Friends,
I am trying to implement a dialog as defiend in PDF doc ( Dialog Boxes in Web Dynpro Applications ) http://209.85.129.104/search?q=cache:fA--oXHmRTEJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/42af9f90-0201-0010-6099-ba67e5426bdfdialogsboxeinwebdynproapplications&hl=en&ct=clnk&cd=1
In this document, he mentioned how to store the instance of the dialog window in context in order to destroy later on:
wdContext.currentPopupElement().setWindowInstance(window);
( I have also created the value node popup and its value attribue WindowInstance of type IWDWindow , but when I use this line of code, i.e wdContext.currentPopupElement().setWindowInstance(window);, I got null pointer exception,
if I comment this line, I can open the window dialog, ( which atleast make me confirm that my window obj is not null ) dont know why I am getting this exception ...
Any idea....
Regards,
Now instead of this:
wdContext.currentPopupElement().setWindowInstance(window);
I used this.
wdContext.createPopupElement().setWindowInstance(window);
I did not get the null pointer exception on this line, however when i try to retrieve the instance like this:
IWDWindow window = wdContext.currentPopupElement().getWindowInstance();
Got null pointer exception ?
any idea why I am getting null pointer exception ?
Regards,
Add a comment