Hi,
this is my problem:
I have an odata service exporting some data, which I display in a table. The table has four columns, three showing text and the last one should contain some buttons. The following code works fine but the red marked line shows the status of results index 1 - so the second entry.
var tableModel = new sap.ui.model.json.JSONModel(oData);
var table = sap.ui.getCore().byId('tableCustomerActions');
table.bindItems('/results',
new sap.m.ColumnListItem({
cells : [
new sap.m.Text({ text : '{ObjectID}' }),
new sap.m.Text({ text : '{Description}' }),
new sap.m.Text({ text : '{TStatus}', }),
getActions(oData.results[1].Status),
],
}));
table.setModel(tableModel);
I now want to loop over the results and use the status of the current item as an input parameter of function getActions(status). Is there any placeholder like oData.results[*].Status available to use directly in bindItems or bindAggregation!?
I'm thankful for any hints.
Best regards.
Ben