Hi Experts,
I´m trying to bind my oData-Service in my component.js file and show the oData Content in one XML-View Tab.
Here is my coding and the oData Structure:
1. Binding (component.js):
2. Content (XML-View Table):
<Table |
inset="false"
items="{/ProCollection}">
<headerToolbar>
<Toolbar>
<Label text="Produkte"></Label>
</Toolbar>
</headerToolbar>
<columns>
<Column
width="12em">
<Label text="ID" />
</Column>
<Column
width="12em">
<Label text="Produkt" />
</Column>
<Column
width="12em">
<Label text="Beschreibung" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier
text="{odata/>ProductId}" />
<ObjectIdentifier
text="{odata/>ProductName}" />
<ObjectIdentifier
text="{odata/>ProductDesc}" />
</cells>
</ColumnListItem>
</items>
</Table> |
3. oData Structure and Content:
->metadata
->EntitySet and Entity
I also see this question: Binding oData into table(sap.m.table) in SAPUI5 , but it don´t work in my case.
I also have a local model (json), it works without any problems and similar implementation. I think the oData-Service Implementation is correct, it must be a problem with the connection in my view or the binding in my component.js.
I hope anyone can help me
Thanks and best regards,
Tim