[英]SAP Fiori OData model connection in UI5
如何從odata模型中獲取數據? 我有一個帶有“失敗”消息的警報,有人可以幫助我嗎?
var sservices_url ="http://services.odata.org/Northwind/Northwind.svc/"; var omodel = new sap.ui.model.odata.ODataModel(sservices_url,true); omodel.read('/Products(1)', null, null, true, function(oData, oResponse){ alert("Read successful: " + JSON.stringify(oData)); },function(){ alert("Read failed");});
如何從odata模型中獲取數據? 我有一個帶有“失敗”消息的警報,有人可以幫助我嗎?
var sservices_url ="http://services.odata.org/Northwind/Northwind.svc/"; var omodel = new sap.ui.model.odata.ODataModel(sservices_url,true); omodel.read('/Products(1)', null, null, true, function(oData, oResponse){ alert("Read successful: " + JSON.stringify(oData)); },function(){ alert("Read failed");});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.