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

Re: Update to table executing only once in SAPUI5

$
0
0

yes in the component.js make the model global and then use like below:

 

var oModel = new sap.ui.model.odata.v2.ODataModel(sServiceUrl, oConfig);

  // oModel.attachRequestFailed(null, ifb.order.assign.util.messages.showErrorMessage);

  this.setModel(oModel);

 

and in view controller call like this :

 

this._oView = this.getView();

var oModel = this._oView.getModel();

oModel.read(spath,success{})


Viewing all articles
Browse latest Browse all 2812

Trending Articles



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