javascript - How to fetch custom header from HTTP response in SAPUI5? -
i performing put operation , working great in rest client in response pgi header shown in below image.
now, try same sapui5 odatamodel using update method. following code.
omodel.update("/performpgi(srno='241')", {"srno":"241"}, null, function(odata, oresponse) { console.log(oresponse.headers.pgi) //undefined }, function(err) {});
in response headers didn't find pgi variable.
can me out this?
thanks.
var fnfunction = function(oevent){ //oevent has complete response, headers , on //so can whatever want do. //please note called on failure handle based on response code }; omodel.attachrequestcompleted(odata?, fnfunction, olistener?);
Comments
Post a Comment