The problem is, that your response is in XML. You can either parse XML using an XML parser (e.g. https://api.jquery.com/jQuery.parseXML/) or change your OData service payload to JSON (which is the most common usage). To change the payload to JSON, the JSON parameter has to be set to true when the ODataModel is created (e.g. var oODataModel = new sap.ui.model.odata.ODataModel(".../.../test.xsodata",{json: true});).
↧