【发布时间】:2017-07-04 07:37:38
【问题描述】:
我想向 manifest.json 添加一个新模型。 该模型应该被扩展。
https://myPath/services/myService.xsodata/SubPath?$expand=CustomerRef
所以定义了Datasource:
"dataSources": {
"mainService": {
"uri": "/myPath/services/myService.xsodata/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/myService.xsodata/metadata.xml"
}
}
并且定义了模型:
"models": {
"Customer": {
"type": "sap.ui.model.odata.v2.ODataModel",
"settings": {
"useBatch": "false"
},
"dataSource": "mainService"
}
如何将展开添加到模型中?
【问题讨论】: