请执行以下步骤以添加服务-
在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" } } },