首页 > 解决方案 > Can't open sapui5 application extension from fiori launchpad

问题描述

I am extending sap standard approval application in a Web IDE full stack. Made a few commits yesterday and at the end of the day, the application stopped working.

When I try to open the app from launchpad, I get nowhere and can only see errors in the console: console output

Web IDE shows no errors, so I am clueless. UI5 version is old 1.28.xx so maybe it behaves differently in new versions, at least the error message. It is my fault in the code, but still, this error should be somehow recognized by Web IDE if it is designed for UI5 apps.

标签: sapui5launching-application

解决方案


嗯,我发现了问题。我收到错误的“u”是格式化程序的全名,格式化程序名称没有用撇号括起来。

我之前从提交中创建了分支,并找到了一个工作版本。我已经运行它并且没问题。之后我从一些提交中部署了代码,它停止工作,但我仍在应用程序中,不知何故它显示了不同的 错误描述!瞧..

我迟早会在视图中发现错误,但让我感到沮丧的是,现在我不知道如何才能获得这个更好的错误消息。

我在想,当我将整个链接放入应用程序并请求特定项目和# 应用程序名称时,我会收到消息,但事实并非如此。下次使用上次提交的部署代码以及指向应用程序和项目编号的特定链接时,它再次显示来自问题的消息。

所以将''添加到格式化程序的解决方案

标题=“{部分:
     [{路径:'WorkitemText'},{路径:'ScNumber'},{路径:'CreatedByID'},{路径:'OnBehalfOfID'}],
     格式化程序:'ui.s2p.srm.sc.approve.SRM_SC_APVExtension.util.Formatter.taskTitle'
     }"

错误在于缺少'

 
...
格式化程序:你...
...

推荐阅读