cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori launchpad extensibility for on-premise gateway

saurabh_vakil
Active Contributor
0 Kudos
1,327

Hi Experts,

I am following the openSAP course Building Portal Sites on SAP Cloud Platform and have implemented the launchpad extensibility app from Week 2 Unit 6 Extensibility. On deploying the shellplugin project to the SAP Cloud Platform I am adding this as an app of type Shell Plugin to my Fiori launchpad portal site - when I preview this site I can see the custom header and sub-header added through the project.

Below is the code in the Component.js file:

jQuery.sap.require("sap.m.MessageBox");
jQuery.sap.declare("myplugin.Component");
sap.ui.core.Component.extend("myplugin.Component", {
init: function() {
//Add reference to css 
jQuery.sap.includeStyleSheet(jQuery.sap.getModulePath("myplugin","/css/style.css"));

//Add Header title
this.setHeaderTitle("KPIT Technologies Fiori Launchpad");
//Add Subheader title
this.addSubHeader([
new sap.m.ToolbarSpacer(),
new sap.m.Text("mySubHeader_txt",{text: "Extending Fiori Launchpad using SAP Cloud Platform"}),
new sap.m.ToolbarSpacer()
new sap.m.Button({icon: "sap-icon://sys-help"}),
new sap.m.Button({icon: "sap-icon://address-book"}),
new sap.m.Button({icon: "sap-icon://marketing-campaign"})
]);
}, //End of init()

setHeaderTitle: function(title) {
var oRendererExtensions = jQuery.sap.getObject("sap.ushell.renderers.fiori2.RendererExtensions");
if (oRendererExtensions) {
oRendererExtensions.setHeaderTitle(title);
}
},

addSubHeader: function(content) {
var oRendererExtensions = jQuery.sap.getObject("sap.ushell.renderers.fiori2.RendererExtensions");
if (oRendererExtensions) {
var toolbar = new sap.m.Toolbar({
content: content
});
oRendererExtensions.addSubHeader(toolbar);
}
},

});

I have now deployed this app to my on-premise gateway system and created a custom Catalog and within the catalog a target mapping for the plugin app and assigned this to a PFCG role assigned to my test user. When I login to the launchpad with the test user I find that the custom header and sub-header I have added via the plugin does not appear on the launchpad.

My question is whether there is something additional I have to do to make the plugin work on the on-premise launchpad?

View Entire Topic
preeti_pradhan
Explorer
0 Kudos

Hi,

Is there any restriction on usage of this plugin with respect to SAP UI library version?