簡體   English   中英

UI5 中的 SAP Fiori OData 模型連接

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM