Skip to Content
0
Jun 04, 2016 at 07:55 AM

Combo Box for 1 column of sap.m.table having multiple selection possible

1544 Views

Hi,

I have a requirement in which i have to make 1 column of my sap.m.table combo box having multiple selection. I have made it normal combo box having static values stored in the Model. But how can i make it multiple selection.

Let me give you an example.

Say suppose my combo box is having 5 values. {"John","Kelsey","Brain","Eena","Emily}.

Now if the User has selected "John" from the combo box, then the column will hold "John". --> Plain simple requirement ( It is happening, so no worries)

But if the user has selected John, Brain & Eena. Then in the column i have to show like below ( Functional team suggested 2 options).

-John more..

-3 People

Strange requirement but i have to complete this 😔.

I am using sap.m.table as my table & using XML views.

Any suggestion or logic or code will be welcome.

Regards,

Rohit