无目标的SAPUI5应用程序(cloudconnector)
我有个问题。。例如,我不想使用sap云,想在sap gatewayserver上部署我的应用程序,那么我需要做哪些更改?我的应用程序通过云平台和目的地(cloudconnector)工作。。但是我不想再这样了。那么我需要在清单或neo.js中更改什么呢?也许你们有个例子?公元前。我真的找不到什么东西能让我头脑发热 我不想将所有调用都更改为ajax调用。。因此,过去有一个很好的解决方案来改变清单或近地天体中的某些东西。。或者类似的,对吗?因此,您不必更改代码 正如我所说的,最好的方法是给我举个例子,并解释一下这个例子 我的neo-app.js无目标的SAPUI5应用程序(cloudconnector),sapui5,sap-gateway,Sapui5,Sap Gateway,我有个问题。。例如,我不想使用sap云,想在sap gatewayserver上部署我的应用程序,那么我需要做哪些更改?我的应用程序通过云平台和目的地(cloudconnector)工作。。但是我不想再这样了。那么我需要在清单或neo.js中更改什么呢?也许你们有个例子?公元前。我真的找不到什么东西能让我头脑发热 我不想将所有调用都更改为ajax调用。。因此,过去有一个很好的解决方案来改变清单或近地天体中的某些东西。。或者类似的,对吗?因此,您不必更改代码 正如我所说的,最好的方法是给我举个例子
{
"welcomeFile": "/webapp/index.html",
"routes": [
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/sap/opu/odata",
"target": {
"type": "destination",
"name": "prototyp2",
"entryPath": "/sap/opu/odata"
},
"description": "prototyp2"
}
],
"sendWelcomeFileRedirect": true
}
如您所见,最后一条路线通过云连接器到达目的地
这是我的舱单
{
"_version": "1.12.0",
"sap.app": {
"id": "test",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "1.0.0"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"ach": "ach",
"sourceTemplate": {
"id": "servicecatalog.connectivityComponentForManifest",
"version": "0.0.0"
},
"dataSources": {
"ZEITERFASSUNG_2_SRV": {
"uri": "/sap/opu/odata/sap/test_SRV/",
"type": "OData",
"settings": {
"localUri": "localService/metadata.xml"
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
},
"supportedThemes": [
"sap_hcb",
"sap_bluecrystal"
]
},
"sap.ui5": {
"rootView": {
"viewName": "Zeiterfassung.view.timeOverview",
"type": "XML"
},
"dependencies": {
"minUI5Version": "1.66.0",
"libs": {
"sap.m": {},
"sap.ui.core": {},
"sap.ui.layout": {},
"sap.ui.table": {
"minVersion": ""
},
"sap.ui.unified": {
"minVersion": ""
}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"": {
"type": "sap.ui.model.odata.v2.ODataModel",
"settings": {
"defaultOperationMode": "Server",
"defaultBindingMode": "TwoWay",
"defaultCountMode": "Request"
},
"dataSource": "test_SRV",
"preload": true
}
},
"resources": {
"css": [
{
"uri": "css/style.css"
}
]
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "Zeiterfassung.view",
"controlAggregation": "pages",
"controlId": "idAppControl"
},
"targets": {
"TargettimeOverview": {
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "TimeOverview"
}
}
}
},
"sap.platform.hcp": {
"uri": "webapp",
"_version": "1.3.0"
}
}
谢谢各位
:)您的neo-app.js仅适用于webide
- 将“webapp”文件夹重命名为“WebContent”李>
- 导出你的应用程序
- 打开
- 在后端使用ui5上传程序 用于上载的“/UI5/UI5\u存储库\u加载”
如果直接运行index.html(而不是使用启动板),请确保index.html中的脚本标记设置为src=“resources/sap ui core.js”,前提是odata服务和应用程序本身由ICF提供,因此清单中的ODataURI应该反映:
resources/whatever/cloudconnector/
到/sap/opu/odata/sap/my_service_name
。您可能还需要一个工作索引文件等,因为启动板使用component.mh。我不知道我是否理解您的意思。。我用代码编辑了我的问题。也许它能帮助你更好地理解我想要什么应该没问题。。您是否考虑过实际将其部署到网关,看看会发生什么?