on 2018 May 16 9:40 PM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
replied in this... https://answers.sap.com/comments/512379/view.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 33 | |
| 17 | |
| 14 | |
| 13 | |
| 9 | |
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.