Fiori Launchpad HCP launch shell plugin before create component

我怕爱的太早我们不能终老 提交于 2019-12-25 08:41:32

问题


Introduction

I am running a testshell project as "Shell plugin" in the HANA Cloud Platform Fiori Launchpad. When I visit the Launchpad in the default front page (with all the tiles), the shell plugin is loaded right.

My shell plugin modifies some things in the navigation URL's, so I must ensure, that the shell plugin is loaded before the applications' Component.js is loaded.

Problem

But, when I start the Fiori Launchpad with a specific intent (for example https://HCP_URL/hrtest#requestleave-Display), the Component.js of the application requestleave is loaded first and then the shell plugins' Component.js.

From the documenation here https://help.hana.ondemand.com/cloud_portal_flp/frameset.htm?87764543e31247b5b471c06e3f6da6fc.html I read:

When you launch SAP Fiori launchpad, all applications that are marked as shell plugin are initialized while the launchpad is loading.

How can I ensure, that the shell plugin is loaded and initialized before it creates Components for the given applications?


回答1:


That the app is loaded before the plugin is actually intended behavior. The main take here is that loading a plugin should not slow down the FLP/Application startup. This is why app initialization is started before plugin initialization. Currently there is no way to overcome this behavior.

Why do you require to manipulate the URL before starting the app? Please provide more information so that we I can perhaps come up with an alternative.



来源:https://stackoverflow.com/questions/41723015/fiori-launchpad-hcp-launch-shell-plugin-before-create-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!