Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9057

oData-Service in XML-View Table

$
0
0

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.

2014-08-28_1303.png

Here is my coding and the oData Structure:

 

1. Binding (component.js):

Unbenannt.png

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

2014-08-28_1305.png

->EntitySet and Entity

2014-08-28_1307.png

 

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


Viewing all articles
Browse latest Browse all 9057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>