Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Issue with odata.v2 - submitChanges stopped working after library upgrade

$
0
0

We have the below logic to save entries using a odata, It was working fine up until recently ,it stopped working after upgrading the UI5 libraries from 1.32 to 1.36. When debugging the request does not have any values . after the createEntry method call the model seems to be updated correctly but when submit changes is triggered the request does not have any data and hence nothing is getting saved.

 

below is the code snippet.

this.oDataModel =  new sap.ui.model.odata.v2.ODataModel(serviceUrl)

     var reqParams = {};
     reqParams.properties = newEntry;
     this.oDataModel.createEntry("/TimeContextCollection", reqParams);

    this.oDataModel.submitChanges({});



Thanks

Mahesh.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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