cancel
Showing results for 
Search instead for 
Did you mean: 

How to go for Multiselection in a table?

Former Member
0 Kudos

HiAll,

Can any one tell me how to go for multiselection in a table.

Regards

DK

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

http://www.sam-solutions.net

sridhar_k2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Dipendra,

Check this thread once:

Regards, Suresh KB