cancel
Showing results for 
Search instead for 
Did you mean: 

populate data in popup table

Former Member
0 Kudos

hi,

i am new to web dynpro. i have created a table, i want to make lead selected row data elements populated in popup table. how can i create a popup n create a table in popup? how can i make a method called onleadselection()?

thanks...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

You need to create a Popup window with another view containing table UI element and you need to populate the data on lead selection to new node created in context, which is also mapped to both the views. Then on button action, when you click on that a popup window will be displayed along with a table in it containing the lead selected data.

Code to for creating popup window

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

IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);

window.setWindowPosition (300, 150);

window.show();

wdContext.currentPopupNodeElement().setPopupAttribute(window);

Code for selecting leadselected data

for(int i=0;i<node.size();i++)

{

if(wdContext.node().isSelected(i)

{

wdContext.node().setAttribute(wdContext.node().getAttributeAt(i);

}

}

Revert me if you have any doubts

Regards

Raghu