on 10-06-2008 6:03 AM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.