简体   繁体   English

Fiori Launchpad无法启动应用程序(负缓存-sap.ui.define不是函数)

[英]Fiori Launchpad cant start App (negative cache - sap.ui.define is not a function)

My UI5 app isn't loading anymore when I add additional Parameters in the LPD_CUST. 当我在LPD_CUST中添加其他参数时,我的UI5应用不再加载。

Screenshot - SAPUI5.Component Path 屏幕截图-SAPUI5.Component路径

Launchpad Error: 启动板错误:

Error - found in negative cache: 'com/untersee/flexnet/supplier/Component.js' from /sap/bc/ui5_ui5/sap/zfn_request/Component.js: TypeError: sap.ui.define is not a function

The Backend Server is on release 740 with ui5 1.16.3, but since im using online resources from ondemand it shouldnt matter, right? 后端服务器在ui5 1.16.3发行版740上,但是由于即时消息是按需使用在线资源,所以应该没关系,对吗?

Codesnipped of the Component.js Component.js的代码片段

The weird thing is, when I configure the Launchpad without the additional information for the component it works - but it runs in sandbox mode, which doesn't allow me to get the location hash from the URL for switching between different backend services. 奇怪的是,当我配置启动板而没有该组件的附加信息时,但是它在沙盒模式下运行,这不允许我从URL获取位置哈希以在不同的后端服务之间进行切换。

I solved both of my problems. 我解决了两个问题。

Updating the Backend solved the sap.ui.define is not a function Error. 更新后端解决了sap.ui.define is not a function错误。

To get the hash I had to use parent.location.hash since the app was running inside an iFrame. 要获取哈希,我必须使用parent.location.hash因为该应用程序在iFrame中运行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该使用 `sap.ui.require` 或 `sap.ui.define` 中的哪一个? - Which of `sap.ui.require` or `sap.ui.define` should I use? SAP Fiori Launchpad定制应用程序错误:无法实例化对象:“新”丢失 - SAP Fiori Launchpad Custom App Error: Cannot instantiate object: “new” is missing 来自 fiori 应用程序模板时将 ui5 应用程序部署到启动板 - Deploying a ui5 app to launchpad when coming from a fiori app template 如何使用自定义应用程序中的后退按钮访问 Fiori Launchpad? - How to get to Fiori Launchpad with back button in custom App? 从客户端javascript发送数据SAP Fiori启动板webapp / SAPUI5 webapp - Sending data SAP Fiori launchpad webapp/SAPUI5 webapp from client side javascript 动态更改 SAP Fiori 标题时“this.getService 不是函数” - “this.getService is not a function” when changing SAP Fiori title dynamically 如何在 SAP UI5/Fiori 中使用 Java 脚本打开其他应用程序或 web 选项卡时处理更改事件 - How to handle change event while opening other apps or web tabs with Java script in SAP UI5/Fiori 类sap.ui.core.mvc.View的渲染器未定义或未定义渲染函数! 渲染将被跳过! -- - The renderer for class sap.ui.core.mvc.View is not defined or does not define a render function! Rendering will be skipped! - 如何使用 HTML 禁用 Fiori UI5 应用程序中的按钮 - How to disable buttons in Fiori UI5 app using HTML SAP UI5 中的函数声明 - function declaration in SAP UI5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM