SAPUI5-';getService';未定义的
我正在使用shell进行变体管理。我在FLP中得到了未定义错误的“getService”。在添加下面的库之后,它工作了 Index.htmlSAPUI5-';getService';未定义的,sapui5,sap-fiori,Sapui5,Sap Fiori,我正在使用shell进行变体管理。我在FLP中得到了未定义错误的“getService”。在添加下面的库之后,它工作了 Index.html <script> window["sap-ushell-config"] = { defaultRenderer : "fiori2", renderers: { fiori2: { componentData: {
<script>
window["sap-ushell-config"] = {
defaultRenderer : "fiori2",
renderers: {
fiori2: {
componentData: {
config: {
search: "hidden"
}
}
}
},
applications: {
"OrderTracking-display": {
additionalInformation: "SAPUI5.Component=orders",
applicationType: "URL",
url: ".",
title: "Order Tracking"
}
}
};
</script>
<script src="/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js" id="sap-ushell-bootstrap"></script>
<script id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-libs="sap.ushell, sap.collaboration, sap.m, sap.ui.commons,
sap.ui.layout, sap.ui.ux3"
data-sap-ui-theme="sap_belize"
data-sap-ui-bindingSyntax="complex"
data-sap-ui-compatVersion="edge"
data-sap-ui-resourceroots='{"orders": "."}'
data-sap-ui-frameOptions="trusted">
但是我在sap.ushell下找不到ui5service.ShellUIService。此外,弹出窗口和日期选择器不工作。如何使sap.ushell.ui5服务和
sap.ushell.services库可以工作
下面是我得到的错误
“ushell”下没有“ui5service”
index.html文件用于在开发过程中以测试模式从WebIDE运行应用程序。创建了一个名为沙盒的本地启动平台来运行该应用程序,但并非所有来自启动平台(云或abap)的服务都可用
应用程序所需的库必须在所需的javascript文件中定义。请向我们展示应用程序中使用的代码。您显示的文件用于在开发过程中运行应用程序,而不是从启动板运行应用程序。@SAPFioriCrew我已编辑了我的问题。这是我用于在LaunchPad中运行应用程序的索引文件,感谢您的回复。将SAPUI版本从740升级到752使其正常工作。
"sap.ui5": {
"rootView": {
"viewName": "orders.view.App",
"type": "XML",
"async": true,
"id": "app"
},
"dependencies": {
"minUI5Version": "1.42.0",
"libs": {
"sap.ui.core": {},
"sap.m": {},
"sap.f": {},
"sap.ushell": {},
"sap.collaboration": {
"lazy": true
}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "orders.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true
}
},
"services": {
"ShellUIService": {
"factoryName": "sap.ushell.ui5service.ShellUIService",
"lazy": false,
"settings": {
"setHierarchy": "auto",
"setTitle": "auto"
}
}
},