on 08-20-2015 11:58 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mattew,
Please look at http://scn.sap.com/docs/DOC-56166
There is a presentation on the above link that will detail to you how to add a custom app to the fiori launchpad.
Hopefully it will be of some assistance to you.
Kind Regards,
Grahame Collins
Support Engineer
SAP Product Support
Fiori SCN http://scn.sap.com/community/fiori
All things FIORI http://scn.sap.com/docs/DOC-41598
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.