on 11-04-2005 3:04 PM
hi
I am implementing a popup window tutorial .
In my view one context node contains one attribute which is of the type IWDwindow.This attribute stores the reference of the window so that it can be destroyed.
Node - Popup
Attribute - Windowinstance
While executing the below given statement
wdContext.currentPopupElement().setWindowInstance(window)
the
"wdContext.currentPopupElement()" gives a null pointer exception..i dont know why?
Do i have to initialise it first if yes how
plese help
Hello Nilesh,
Make node Popup property cardinality and selection to 1..1 and set init leadSelection to true.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is that your node doesn`t have any node elements and you are trying to call method of element with lead selection which doesn`t exist. So, you should make cardinality 1..1 or 1..N (doesn`t make sence because you don`t need to store multiple references to windows), to force dynpro runtime to create node element automatically.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.