Skip to Content
0

SAP Fiori Launched/Portal - Detecting SAPUI5 Application Parent Container

Mar 20, 2017 at 05:00 AM

167

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
A K Mar 20, 2017 at 08:52 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded