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

Re: Passing Json Model from one controller to another controller

$
0
0

in S2

 

search: function (oEvent) {  var that = this;  var oModel =  new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZXX_PRICE_AVAIL_SRV_01/");  oModel.read("MaterialAvailabilitySet", null, ["$filter=simMatnr eq '000000000088242626' and simWerks eq 'SLMO' and simKunag eq '100412' and simKunwe eq '8000842'"], true,  function(oData, oResponse) {    var oMaterialAvailability = new sap.ui.model.json.JSONModel(oData.results);    sap.ui.getCore().setModel(oMaterialAvailability, "MaterialAvailabilityModel");    this.oRouter.navTo( "detail", !jQuery.device.is.phone);  }  );
}

Viewing all articles
Browse latest Browse all 9091

Trending Articles



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