Skip to Content
0
Former Member
Jul 18, 2007 at 12:14 AM

How to Create Pop up window and assign values to the table in it

21 Views

Hi All,

I have a code which checks for duplicate value in the database and displays that duplicate record. I want to put the duplicate record value in a table of a popup window. Can you please tell me how do i acheive this?

I tried the below code for creating a popup but most of the methods used here are deprecated. Please help

IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(

"MyWindowName");

// create the Window

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

window.setWindowPosition(WDWindowPos.CENTER);

window.setTitle("WindowTitle");

// Save WindowInstance in Context

wdContext.currentContextElement.setWindowInstance(window);

// and show the window

window.open();

Regards

Suresh