Hi Community,
I am binding a sap.m.Table to Odata service .The service is returning correct data but the table is only showing last record of the data multiple times( = total records returned by SAPUI5) . Here is the JSON from debugger and XML View :
<Table inset="true" headerText="Technician Log" items="{NotifTechLog}">
<columns>
<Column id="__dynamicColumn0">
<header>
<Label text="Staff Name" />
</header>
</Column>
<Column id="__dynamicColumn1">
<header>
<Label text="Staff ID" />
</header>
</Column>
<Column id="__dynamicColumn2">
<header>
<Label text="Hours" />
</header>
</Column>
<Column id="__dynamicColumn3">
<header>
<Label text="Start Time" />
</header>
</Column>
<Column id="__dynamicColumn4">
<header>
<Label text="Start Date" />
</header>
</Column>
<Column id="__dynamicColumn5">
<header>
<Label text="End Time" />
</header>
</Column>
<Column id="__dynamicColumn6">
<header>
<Label text="End Date" />
</header>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{Zzpstaffname}" />
<Text text="{Zzpstaffno}" />
<Text text="{Zzplabhrs} {Zzpunit}" />
<Text text="{path : 'ZzpstartTime',type: 'sap.ui.model.odata.type.Time' }" />
<Text text="{path : 'ZzpstartDat', type : 'sap.ui.model.type.Date'}" />
<Text text="{path : 'ZzpendTime',type: 'sap.ui.model.odata.type.Time' }" />
<Text text="{path :'ZzpendDat', type : 'sap.ui.model.type.Date'}" />
</cells>
</ColumnListItem>
</items>
</Table>
- {d: {,…}}