cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window error

former_member181928
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hello Nilesh,

Make node Popup property cardinality and selection to 1..1 and set init leadSelection to true.

Best regards, Maksim Rashchynski.

former_member181928
Participant
0 Kudos

Thanks A Lot I was Able to Solve The Query I have Also given u points .

Can u please explain me the reason for it.

former_member182372
Active Contributor
0 Kudos

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.

Answers (0)