on 2017 May 03 5:01 PM
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?
Hi Krishna,
The issue was resolved by changing the intent to Shell-plugin in the target mapping properties. Now the plugin gets loaded on the launchpad and also displays the changes I made.
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.