I have a simple UI5 app, and would like to place a tile on the Fiori Launchpad to launch it from there.
As I understand it, to make an app work with the launchpad, you do not need an index.html file as that will keep as it an independent app and launch in a new tab/window.
The Component.js, therefore, is the method to 'hook' the app into the context of the launchpad.
I am having trouble understanding how to get this to work. Some information mentions the standard extension of the UIComponent, whereas looking at the SAP standard Fiori apps (e.g. leave request approval etc), they use sap.ca.scfld.md.ComponentBase.extend.
I have set up the tile in the launchpad, I don't think there are any issues there. The current error I'm getting is the Home.controller.js file is 404'ing. But specifying the controller in the createContent function stops the Home.view.xml file from being created.
Here is my current non-working Component.js:
jQuery.sap.declare("NAMESPACE.Component");
jQuery.sap.require("sap.ca.scfld.md.ComponentBase");
sap.ca.scfld.md.ComponentBase.extend("NAMESPACE.Component", {
metadata: sap.ca.scfld.md.ComponentBase.createMetaData("MD", {
"dependencies" : {
"libs" : [ "sap.m" ]
},
"config": {
"resourceBundle": "i18n/messageBundle.properties"
}
}),
createContent : function() {
var oView = sap.ui.view({
viewName : "NAMESPACE.view.Home",
type : sap.ui.core.mvc.ViewType.XML
});
return oView;
}
});
I am not trying to extend an existing Fiori app, I am creating an app from scratch and trying to add it to the launchpad.