Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Problem getting data from a simple oData service [SampleFlight]

$
0
0

Hello,
as I am quite new to the oData services, I tried to test something really simple - that is, get some random data from an oData service to show in a simple textField. I looked at the numerous examples provided by different sources, but it seems, that all of the examples are based on getting data to a table. For my first step, I would just like to get a certain value to a certain textfield.
As I am foggy on the different binding options, I have tried different variations of them (e.g bindElement, bindProperty, bindContext), but so far with no success.
Right now I am trying to display the value of carrier ID (carrid) from the SampleFlight test-service to a sap.ui.commons.TextView and I am getting an error saying that no data was retrieved by service from the addess /sap/opu/sdata/IWFND/SAMPLEFLIGHT/FlightCollection(carrid='AC')/carrid, although that address returns me a single tag of <d:carrid>AC<d:carrid> (the data seems to be there?).

 

Please see the 3 screenshots I posted to illustrate the problem.

 

Any help is appreciated.

 

Mario.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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