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

Re: oData binding in XML View

$
0
0

Hi Pavlo/Karthik,

Should I write the code as follows:

 

sap.ui.controller("custportal.Main", {
onInit : function() {
var sServiceUrl = "/sap/opu/odata/SAP/ZMM_EMP_SRV/"
var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, true,"LOGIN", "PASWRD");
var oJsonModel = new sap.ui.model.json.JSONModel();
var data = oModel.results;
 oJsonModel.setData(data);
},
});

 

Regards,

Firoz.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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