cancel
Showing results for 
Search instead for 
Did you mean: 

Shell Plugin for Admin Site Portal- SCP

shama_parween
Explorer
0 Kudos
519

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!

View Entire Topic
cdan
Explorer
0 Kudos

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);
  }
});

 



 
ethan13
Explorer
0 Kudos
Creating a shell plugin for the admin site portal in SCP requires careful planning and alignment with the SAP Fiori launchpad plugin guidelines. Here are some steps you can follow: Understand the Plugin Requirements: Determine the specific features or functions you want to add through the shell plugin. For instance, is it for navigation, UI enhancement, or integrating additional functionalities? Set Up Your Development Environment: Make sure your environment is ready with the necessary tools, including SAP Business Application Studio or WebIDE, depending on your subscription. Create the Shell Plugin Project: Use the "New Project from Template" option in your development tool. Select "SAP Fiori Launchpad Plugin." Configure the plugin with the required namespace and IDs. Write the Custom Code: Add the custom JavaScript to extend or override default shell functionalities. You can interact with the Launchpad using the sap.ushell library. Deploy and Test: Deploy your plugin to your SCP subaccount and test it within the admin portal. Ensure proper integration without affecting the core functionality of the portal. Secure and Optimize: Double-check role configurations to ensure only authorized users can access or modify the plugin. Also, optimize your code for performance.