Skip to Content
avatar image
Former Member

SAP Fiori Launched/Portal - Detecting SAPUI5 Application Parent Container

Hi Experts,

I am trying to load 2 different configuration files(json format) for the same SAPUI5 application. I want to load config1.json when the ui5 app is running standalone and load config2.json when the ui5 app is running inside a parent container(either Fiori Launchpad/Portal Service site).

Is there an easy way to determine if the app is currently running inside a launchpad or standalone.

Any suggestions are appreciated.

Thanks,

Deepak

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 20, 2017 at 08:52 AM

    Better to get the info from PATH name.

    Step1: window.location.pathname, it retuens "/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html" when you run your app on Launchpad.

    Step2: Make it in IF condition to execute your task :)

    Regards,

    K

    Add comment
    10|10000 characters needed characters exceeded