properties - odata model Cannot read property 'jsonHandler' of undefined sapui5 -


i trying access odata service on android device application on cordova getting following error :

uncaught typeerror: cannot read property 'jsonhandler' of undefined

for following code:

var sserviceurl = "https://host:port/sap/opu/odata/sap/servicename";

var scredentials = ousernamecontrol.getvalue() + ':' + opasswordcontrol.getvalue();

var scredentialsencode = btoa(scredentials);

var sauthenticationtoken = "basic " + scredentialsencode ;

var mrequestheader = {};

mrequestheader["authorization"] = sauthenticationtoken;

    //create object odata model constructor parameters     var oconstructorparams = {};     oconstructorparams["json"] = true;     oconstructorparams["headers"] = mrequestheader;     oconstructorparams["tokenhandling"] = true;  var odatamodel = new sap.ui.model.odata.odatamodel(sserviceurl,oconstructorparams); 

and when set json parameter false following error : cannot read property 'atomhandler' of undefined

where going wrong?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -