Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onInit: function() {
- var sUrl = "/sap/opu/odata/SAP/ZAPP14_SRV_01/";
- var oDataModel = new sap.ui.model.odata.v2.ODataModel(sUrl, {
- json: true,
- loadMetadataAsync: true
- });
- var oModel = new sap.ui.model.json.JSONModel();
- oDataModel.read("/countSet", {
- success: function(oData, response) {
- oModel.setData(oData);
- }
- });
- oModel.setSizeLimit(300);
- this.getView().setModel(oModel, "count");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement