Skip to Content

Multi-select table - which items are selected?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 16 at 08:49 PM
    Add comment
    10|10000 characters needed characters exceeded