I'm using an OData Model from my SAP Gateway:
var oModel = new sap.ui.model.odata.ODataModel(url);
this.setModel(oModel, "model");
Now I have the requirement to display a property from the first line of an EntitySet.
I tried it with the following code in my XML view but without success:
<Text text="{model>/ZLLEDATSet/0/Date}" />
I thought the syntax should be "modelname>/entitySet/index/PropertyName"
.
Based on the answer from @SiddP: I tried the following but I get the error
Uncaught [object Object]
<Text text="{
path: 'model>/ZLLEDATSet',
formatter: function(value) {
return value[0].Date;
}
}"/>