Extension project - Component.js of standard application could not be loaded

Issue

extension project的component.js能够成功加载(红色),但是standard application的加载失败(绿色)

Extension project - Component.js of standard application could not be loaded


成功加载的extension component.js的url: /sap/bc/ui5_ui5/sap/ZJERRY20150602/Component.js

加载失败的standard component.js的url: /sap/bc/ui5_ui5/ui2/ushell/resources/cus/crm/opportunity/Component.js

再观察另一个在系统里能成功加载的extension project的behavior:

可以看出standard的Fiori app是加载在folder bc/ui5_ui5/sap熙的,而不是我们error case试图从ui2/ushell/resources下加载:



观察正常工作的extension project的例子:

Extension project - Component.js of standard application could not be loaded

standard app的component.js 加载是通过line3的jQuery.sap.require() method触发的

cus.crm.opportunity这一module的path通过line1注册成/sap/bc/ui5_ui5/sap/crm_opprtnty,这正好是在Chrome的source folder里观察到的crm_opprtnty的树形路径。

Extension project - Component.js of standard application could not be loaded

更改之后问题解决

Extension project - Component.js of standard application could not be loaded


上一篇:how is component.js of extension project loaded


下一篇:different styles of button in footer area