[英]How to get to Fiori Launchpad with back button in custom App?
[英]SAP Fiori Launchpad Custom App Error: Cannot instantiate object: “new” is missing
嘗試在fiori啟動板中啟動我們定制開發的SAPUI5應用程序后,我們收到以下錯誤消息:
LPD_CUST設置:
Component.js
sap.ui.define([
"sap/ui/core/UIComponent"
], function (UIComponent) {
"use strict";
return UIComponent.extend("***.***.***.Component", {
metadata : {
manifest: "json"
},
init : function () {
UIComponent.prototype.init.apply(this, arguments);
}
});
});
目標映射:
語義對象:
事務/ n / UI2 / SEMOBJ中存在語義對象YCEI_BPUPLOAD_SEM
該應用程序通過index.html作為獨立應用程序啟動。 但是,如果我們嘗試在SAP Fiori Launchpad上啟動它,則會出現錯誤消息。
我們還嘗試了以下component.js,我們在LPD_CUST事務中輸入了附加信息屬性的值,但收到了相同的錯誤。
jQuery.sap.declare("***.***.***.Component");
sap.ui.core.UIComponent.extend("***.***.***", {
createContent : function() {
// create root view
this.view = sap.ui.view({
id : "app",
viewName : "***.***.***.view.App",
type : sap.ui.core.mvc.ViewType.XML,
viewData : { component : this }
});
return this.view;
}
});
(***是內部組件/路徑)
所有提示表示贊賞。
問候,
多米尼克
該錯誤消息將您鏈接到應用程序的控制器。 請確保正確實例化了對象。 實例化OData模型可能存在問題。 檢查是否使用“新”。 請參見下面的語法:
https://ui5.sap.com/#/topic/6c47b2b39db9404582994070ec3d57a2.html
實例化對象時,例如在第二種選擇上,您需要使用“ new”:
this.view = new sap.ui.view({
id : "app",
viewName : "***.***.***.view.App",
type : sap.ui.core.mvc.ViewType.XML,
viewData : { component : this }
});
我認為這不是您問題的答案,但我認為這是一個錯誤,也許可以以某種方式幫助您。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.