cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when trying to use IWDWindow

Former Member
0 Kudos

Hello all,

I am trying to get a popup window. After searching the forum, and using the tutorials, I use the following code:

// get the repository content at runtime of the Web-Dynpro-

// Window “ICONummerWindow”

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

//create the “ICONummerWindow”

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

//set the WindowPosition on the screen

window.setWindowPosition(300, 150);

//and show the window

window.open();

// Save WindowInstance in Context

wdContext.currentPopupElement().setWindowInstance(window);

However, I get the following error messages:

IWDWindowInfo cannot be resolved or is not a type

IWDWindow cannot be resolved or is not a type

How can I solve this?

TIA,

Jaron Frenk

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi

Organize imports Right click -> select source -> select Organize imports

or

do this

Ctrl+ Shift+O

regards

Siva

Former Member
0 Kudos

Great!

That worked!

Answers (0)