on 10-17-2006 7:42 AM
HiAll,
Can any one tell me how to go for multiselection in a table.
Regards
DK
DIPENDRA,
Context node that is used as Table dataSource must have <b>selection cardinality</b> 0..n (default is 0..1). Also Table itself must have selection mode "auto" or "multi"
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi DK,
It just changing the property of the node which is binding to the table.
(CompController/View) Node - Property - Selection - 0..n. With this, it allows you to select multiple rows. From the implementation you can get the selected rows and their values.
ITableElement tableEle = null;
for(int i=0;i<wdContext.nodeTable().size();i++){
boolean aa = wdContext.nodeTable().isMultiSelected(i);
if(aa){
wdComponentAPI.getMessageManager().reportSuccess(" Selected "+i);
tableEle = (ITableElement)wdContext.nodeTable().getElementAt(i+1);
}
}
//tableEle - is the row which you had selected, you can get indiviudal value from this row element.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi D,
I asume you are talking about a webdynpro UI element 'Table';
You can set the property 'SelectionMode' to 'Multi'.
Here you can find more info:
<a href="http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&IWB_INDUSTRY=ERP-BFS&TMP_IWB_TASK=DISPLAY&RELEASE=700&LANGUAGE=EN&_SEQNUM=426&_LOIO=6EAE0E422DFCDC2CE10000000A1550B0&_CLASS=IWB_EXTHLP">http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&IWB_INDUSTRY=ERP-BFS&TMP_IWB_TASK=DISPLAY&RELEASE=700&LANGUAGE=EN&_SEQNUM=426&_LOIO=6EAE0E422DFCDC2CE10000000A1550B0&_CLASS=IWB_EXTHLP</a>
Best regards,
Joris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.