简体   繁体   English

SAP Fiori Launchpad定制应用程序错误:无法实例化对象:“新”丢失

[英]SAP Fiori Launchpad Custom App Error: Cannot instantiate object: “new” is missing

After trying to start our custom developed SAPUI5 app in the fiori launchpad, we received following error message: 尝试在fiori启动板中启动我们定制开发的SAPUI5应用程序后,我们收到以下错误消息:

Error 错误

LPD_CUST Settings: LPD_CUST设置:

LPD_CUST_settings LPD_CUST_settings

Component.js 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);
 }
 });
});

Target Mapping: 目标映射:

Target Mapping 目标映射

Semantic Object: 语义对象:

Semantiv Object YCEI_BPUPLOAD_SEM exists in the Transaction /n/UI2/SEMOBJ 事务/ n / UI2 / SEMOBJ中存在语义对象YCEI_BPUPLOAD_SEM

The App is starting as a standalone application via the index.html. 该应用程序通过index.html作为独立应用程序启动。 But if we try to launch it on the SAP Fiori Launchpad, the error message appears. 但是,如果我们尝试在SAP Fiori Launchpad上启动它,则会出现错误消息。

We also tried following component.js where we entered the value of the Additional Information property in the LPD_CUST transaction but we received the same error. 我们还尝试了以下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;
}
});

(*** are internal components/paths) (***是内部组件/路径)

All hints are appreciated. 所有提示表示赞赏。

Regards, 问候,

Dominic 多米尼克

The error message is linking you to the controller of your application. 该错误消息将您链接到应用程序的控制器。 Please make sure you instantiated the objects correctly. 请确保正确实例化了对象。 Maybe there is a problem with instantiating an OData Model. 实例化OData模型可能存在问题。 Check if you use "new". 检查是否使用“新”。 See syntax below: 请参见下面的语法:

https://ui5.sap.com/#/topic/6c47b2b39db9404582994070ec3d57a2.html https://ui5.sap.com/#/topic/6c47b2b39db9404582994070ec3d57a2.html

You need to use "new" when instantiating an object, for example on your second option: 实例化对象时,例如在第二种选择上,您需要使用“ new”:

   this.view = new sap.ui.view({
       id : "app",
       viewName : "***.***.***.view.App",
       type : sap.ui.core.mvc.ViewType.XML,
       viewData : { component : this }
  });

I don't think that's the answer to your problem, but I think it was an error and maybe it can help you somehow. 我认为这不是您问题的答案,但我认为这是一个错误,也许可以以某种方式帮助您。

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

相关问题 如何使用自定义应用程序中的后退按钮访问 Fiori Launchpad? - How to get to Fiori Launchpad with back button in custom App? Fiori Launchpad无法启动应用程序(负缓存-sap.ui.define不是函数) - Fiori Launchpad cant start App (negative cache - sap.ui.define is not a function) 从客户端javascript发送数据SAP Fiori启动板webapp / SAPUI5 webapp - Sending data SAP Fiori launchpad webapp/SAPUI5 webapp from client side javascript 来自 fiori 应用程序模板时将 ui5 应用程序部署到启动板 - Deploying a ui5 app to launchpad when coming from a fiori app template SAP Fiori 客户端初始化 Cordova JSON 错误时出错 - SAP Fiori client Error initializing Cordova JSON error angularjs-建立一个登录/启动板,重定向到新应用,但维护令牌信息 - angularjs - building a login/launchpad that redirects to new app but maintains token info 尝试在 Discord.js 中实例化新消息 Object 时出错 - Error when trying to instantiate a new Message Object in Discord.js 无法为JavaScript中的ActiveX控件实例化对象:出现429错误 - Cannot instantiate Object for ActiveX control in JavaScript: get 429 error 聊天机插件部署后,Fiori启动板变得无法响应 - Fiori launchpad becomes unresponsive after chatbot plugin deployment 在 SAP Fiori 所有页面中加载外部 JS - Loading External JS in SAP Fiori all pages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM