cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to interrupt Fiori application loading at startup (Fiori Elements, OData V4)?

nikbereziuk
Explorer
217

Hi Experts,

I have to implement the following business requirement: There's a SPRO setting that enables or disables my custom Fiori application, and I must interrupt (or proceed with) application loading based on this parameter. The app is built using Fiori Elements, OData V4 and I'm utilizing Flexible Programming Model wherever possible.

I have tried a few approaches, but none seems to work. Two of them are as follows:

  • I override onInit (or onBeforeRendering) methods in the List Page controller extension, where I read SPRO setting from service (it works), display an error message box (also works), but the app keeps loading in the background, which is what I want to avoid. In freestyle apps I used the trick with a placeholder with autoClose setting set to false and closing it if the app is enabled in SPRO, but in case of Fiori Elements app this placeholder seems to have no effect on the app in the manifest...
  • I created a custom "landing page" with the message that the app is disabled, but if it's enabled, I planned to navigate to the List Page immediately. Again, querying backend works, the page is loading and displaying my message, but I simply can't force navigation to the List Page if the app is enabled...

I would sincerely appreciate if you share your ideas about how to deal with that requirement.

Regards,

Mykyta

Accepted Solutions (0)

Answers (0)