Skip to Content
0

Multi-select table - which items are selected?

May 16 at 08:40 PM

33

avatar image

I have a MultiSelect table.

<Table id="idProductsTable" inset="false" mode="MultiSelect" selectionChange="onInvoiceSelectionChange" items="{ path: '/value', sorter: { path: 'DocNum' } }">

I need to iterate through the table and determine whether each item is selected or de-selected.

var oModel = oTable.getModel();

var ItemArray = oModel.getProperty("/value/");
length = ItemArray.length;

for (i = 0; i < length; i++) {

//How can I tell if the item is selected? "Selected" is not in the model data.

//Is there a better way to iterate the table?

......


}

Thanks,

Mel

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Srikanth KV May 16 at 08:49 PM
0
Share
10 |10000 characters needed characters left characters exceeded