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

SAPUI5 oData expand entity on table rows binding

$
0
0

Hi,

 

I implemented a service which is giving back necessary data obtained from an uploaded input xml file.
I've also implemented the expandend entity set method in order to get both header and items data from the file.

 

Now the issue is on the SAPUI5 side where I am not able to display the items data from the oData service which I am able to get filled correctly.
Attached here is the response I get from the oData service.

 

 

 

For the view, I am using a standard <Table> element inside an XML view.

Here is my code for the table, trying to get the necessary data for the items element.

Please note, fileContentPSet is the entity set which gives back the items.

 

         <table:Table id="carrierTable">

              <table:title><Textview text="Carrier Shipments [Uploaded]"></Textview></table:title>

              <table:columns>

                  <table:Column>

                    <Label text="Invoice Num."/>

                    <table:template><TextView text="{invoiceNumber}" /></table:template>

                  </table:Column>

                  <table:Column>

                    <Label text="Container Type"/>

                    <table:template><TextView text="{fileContentPSet/containerType}" /></table:template>

                  </table:Column>

                  <table:Column>

                    <Label text="Transaction Date"/>

                    <table:template><TextView text="{fileContentPSet/transactionDate}" /></table:template>

                  </table:Column>

                  <table:Column>

                    <Label text="Tracking Num."/>

                    <table:template><TextView text="{fileContentPSet/trackingNumber}" /></table:template>

                  </table:Column>

                  <table:Column>

                    <Label text="Net Amount"/>

                    <table:template><TextView text="{fileContentPSet/netAmount}"/></table:template>

                  </table:Column>

              </table:columns>

          </table:Table>

 

Furthermore, I am able to display the data from the header odata response [e.g. I can see {invoiceNumber} ]

 

Thanks in advance if you can give some hints on this

 

Regards,

Claudia


Viewing all articles
Browse latest Browse all 3441

Trending Articles



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