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

get results from odata read operation(undefined)

$
0
0

Hi everyone,

 

in my ui5 application, i have issues reading the property values of an entityset, even tough the data is there (regarding the console), getProperty commend returns "cannot read Property of undefined" etc..

 

the method to retrieve the model:

getDefaultUserSettings: function() {
var o = function(D, r) {
var c = new sap.ui.model.json.JSONModel(D);
};
var d = this.getOwnerComponent().getModel('userSetModel');
d.read("/DefaultUserSettings?", null, null, false, jQuery.proxy(o, this), jQuery.proxy(this.onRequestFailed, this));
console.log(d);

---------------------------------------------------------------

 

manifest.json:
"userSet": {                "uri": "/sap/opu/odata/srmnxp/getdefusrset/",                "type": "OData",                "settings": {                    "annotations": [],                    "odataVersion": "2.0",                    "localUri": "localService/metadata.xml"

 

 

Console.output. (I want to read out the field "TEMP_CART_ID):

 

 

 

Thank you for any help!


Regards,


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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