在 SAP Web 專案中使用 SAP Gateway 服務


請執行以下步驟以新增服務 −

  • 在 manifest.json 檔案中定義服務?
"sap.app": {
   [...],
   "dataSources": {
      "mainService": {
          "uri": "Path of your service",
          "type": "OData",
         "settings": {
            "odataVersion": "X.X",
            "localUri":
            "localService/metadata.xml"
         }
      }
},
[...]
  • 模型定義應該在 manifest.json 檔案中實現?

"models": {
   [...],
   "": {
      "dataSource": "mainService",
      "settings": {
         "metadataUrlParams": {
            "sap-documentation": "heading"
         },
        "defaultBindingMode": "TwoWay"
      }
   }
},

更新於: 2020 年 2 月 18 日

230 次瀏覽

開啟您的 職業

完成課程後獲得證書

立即開始
廣告
© . All rights reserved.