on 2019 May 24 9:59 AM
Hello Experts,
We are designing a custom portal using Admin Site template.
We need additional buttons, icons on the header section. I have tried using shell plugin.
I am unable to integrate shell plugin on admin site portal, same works for Fiori launchpad template.
Kindly provide documents or steps for using shell plugin in Admin site portal.
Thanks in advance!
Request clarification before answering.
I realize I am too late for this but still I will answer this. I think I understand the problem you are facing.
Since you were previously using normal sandbox launchpad for plugins for your site shell plugin will work there because your syntax would probably be this I guess to add the buttons on header for both admin site template and normal sandbox flp template accordingly(example scenario). Hope this helps
rendererPromise.then(function (oRenderer) {
var oRootControl=oRenderer.getRootControl()
var oViewName=oRootControl.getProperty("viewName")
//for adminsite template
if(oViewName.includes('admin')){
var oButton=new Button("headerEnd",{
tooltip: "User",
icon: "sap-icon://person-placeholder",
press: function (oEvent) {
that._showUserPopup(oEvent)
}
})
var oMenuIndex = oRootControl.toolHeader.getContent().findIndex(oControl => oControl.getId().includes("toolHeaderUserItem"));
oRootControl.toolHeader.insertContent(oButton,oMenuIndex)
}else{ //for shell plugin template
oRenderer.addHeaderEndItem({
id: "headerEnd",
tooltip: "User",
icon: "sap-icon://person-placeholder",
press: function (oEvent) {
that._showUserPopup(oEvent);
}
}, true, false);
}
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.