首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >没有目的地的SAPUI5应用(Cloudconnector)

没有目的地的SAPUI5应用(Cloudconnector)
EN

Stack Overflow用户
提问于 2019-10-16 21:30:40
回答 1查看 371关注 0票数 0

我有一个问题..例如,我不想使用sap cloud,而想要在sap网关服务器上部署我的应用程序,那么我需要做什么改变呢?我的应用程序通过有目的地(Cloudconnector)的云平台工作。但我再也不想这样了。那么,我需要在清单或neo.js中更改什么呢?也许你们有一个例子?公元前。我真的找不到任何东西能让我在脑海中打动..

我不想把所有的调用都改成ajax调用。因此,过去有一个很好的解决方案来更改清单或neo中的某些内容。或者类似的东西,对吧?所以你不需要修改你的代码

正如我所说的,最好的方法是向我展示一个例子,并在这个例子上给我解释。

我的neo-app.js

代码语言:javascript
运行
复制
{
  "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
}

如你所见,最后一条路线是通过云连接器到达目的地。

这是我的载货单

代码语言:javascript
运行
复制
{
    "_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"
    }
}

谢谢你们

:)

EN

回答 1

Stack Overflow用户

发布于 2019-10-23 00:18:40

你的neo-app.js只是给我们的。

  • 将您的"webapp“文件夹重命名为"WebContent”。存储库在后端导出app
  • unpack
  • use
  • ui5 uploader“/ui5/ui5_

_”用于上载

如果直接运行脚本(而不是使用启动板),请确保将index.html中的脚本标记设置为src="resources/sap-ui-core.js"

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58414574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档