
The local sandbox environment for the SAP Fiori launchpad allows you to run your local SAP Fiori apps inside the SAP Fiori launchpad.
You create a root component for the application. The demo apps serve as reference (for example, see /test-resources/sap/ushell/demoapp/FioriSandboxDefaultApp/Component.js).
The SAP Fiori launchpad sandbox comes with a default configuration file for the demo apps, which is stored under test-resources/sap/ushell/shells/sandbox/fioriSandboxConfig.js (deployed in jar file). You can extend the default configuration by providing an additional configuration file under URL /appconfig/fioriSandboxConfig.json. Your configuration changes overwrite the default configuration.
Therefore, you set up a local Java Web server and deploy the configuration as an additional Web module.
Create a local configuration file. For more information, see Creating a Local Configuration File.
The local configuration is stored in the JSON format. You can configure a list of applications. The applications have a key that is used for launching. This key is composed of the syntax <SemanticObject>-<Action>. For each application, specify the following properties:
additionalInformation: The additionalInformation property in this object refers to the name of the root component of your SAPUI5 Fiori application (without ".Component").
applicationType: The application type for SAPUI5 applications is always URL.
url: The URL property is set to the root path of your application (the folder where you would have your Component.js files).
description: The description for the application.
You have created an SAPUI5 application that is deployed on your local test server under path '/MyFioriApplication'. You have created a root component called “MyFioriApplication”. Then the configuration file must be as follows:
fioriSandboxConfig.json
{
"applications" : {
"MyFioriObject-display" : {
"additionalInformation" : "SAPUI5.Component=MyFioriApplication",
"applicationType" : "URL",
"url" : "/MyFioriApplication",
"description" : "MyFioriApplication"
}
}
}To create the configuration file, proceed as follows: