Let’s have a look at the launchpage.html
file and the configuration in there. In the first script you will see:
<script>
window["sap-ushell-config"] = {
defaultRenderer: "fiori2",
applications: {
"risks-app": {
title: "Risks",
description: "Risks",
additionalInformation: "SAPUI5.Component=ns.risks",
applicationType: "URL",
url: "./risks/webapp",
navigationMode: "embedded"
},
"mitigations-app": {
title: "Mitigations",
description: "Mitigations",
additionalInformation: "SAPUI5.Component=ns.mitigations",
applicationType: "URL",
url: "./mitigations/webapp",
navigationMode: "embedded"
}
}
};
</script>
Why name it launchpage.html
instead of index.html
?
You are using the name launchpage.html
because cds watch
by default looks for an index.html
file in the app
folder. If cds watch
finds such a file, it replaces the default page that also contains the links to the services with the index.html
in the folder. While this makes sense in many cases, for development purposes we stick to the index page of CDS and give a different name to our index file.
There are two applications in the launch page with URLs that point to the respective apps. There are other properties configured here like the title and description. Similarly, another application can be added to the launch page by adding an entry here.
The result of this tutorial can be found in the launchpage
branch.