I have a table with element, and a Delete button.
My requirement is: when I select one element, if I push this button, it open a pop-up with the same table but ONLY with the element selected.
Here is the code of "action" for the "delete" button:
public void onActionDeleteElement(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionDeleteElement(ServerEvent)
logger.entering("onActionDeleteElement");
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI
.getComponentInfo().findInWindows("Popup_View");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(
windowInfo);
window.setTitle("Selected");
window.show();
logger.exiting("onActionDeleteElement");
//@@end
}
I really need help, please.
Thank you.
Actually, it seems that you've binded both tables to the same datasource (the same node), and thus second table shows the same content. In your case it would be complicated to implement the given requirement. The most simple way to do this would be:
In
wdDoInit
method of popup view/windowGet current element of common mapped node .
You should check also if that node allows multiselection.
Add selected elements to the popup node