在sapui5 personal webide 配置 NorthWind
在如下目录建立无后缀文件“NorthWind”
\eclipse\config_master\service.destinations\destinations\NorthWind
内容:
Description=Northwind
Type=HTTP
Authentication=NoAuthentication
WebIDEUsage=odata_gen
Name=northwind
WebIDEEnabled=true
CloudConnectorVersion=2
URL=https\://services.odata.org
ProxyType=Internet
WebIDESystem=Northwind
在neo-app.json中追加如下内容
,
{
"path": "/destinations/NorthWind",
"target": {
"type": "destination",
"name": "northwind"
},
"description": "Northwind OData Service"
}
双击manifest.json 并以Descript Edit模式打开进入Data sources页签,
点击“+”新建oData Service, 数据来源选择 Service URL, 连接在destinations中创建的NorthWind,
最后输入下面的联系进行测试。
/V2/northwind/northwind.svc/
最终选择一个Service, 进行到下一步。
如选择了Customers,之后就可以建立model了。
使用:
在component.js 修改metadata
metadata: {
manifest: "json",
config: {
i18nBundle: "Odata.i18n.i18n",
serviceUrl: "/V2/northwind/northwind.svc"
}
},