cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Launchpad-FLPResources Customization is required.

vdurgarao09
Contributor
0 Kudos

Dear all,

Fiori Launchpad- FLPResources Customization is required.please tell me the process.I need to implement some of the functionality.

Example:-

Idle timeout,i need to block the refresh option for users once refresh done i need to logoff the user .

The above functionality are i done in AJAX Masthead.But now i am using the SAPUI5 applications and Fiori Launchpad.So my client is required those functionality.

I am trying the customization for  FLPResources war file.But i am unable to understanding this logic,Here some many .js files and two jar files are there.

I created the portal application.i de-complied the jars and i took the code.But i am unable to find this class/jar.


import com.sap.portal.prt.broker.IPortalModuleBroker;

import com.sap.portal.prt.broker.PortalAppBroker;

import com.sap.portal.prt.broker.PortalModuleItem;

1. Suppose this is possible means are not..? And any problems i will face are not..?

2. This process is good for customization for Fiori Lanchpad.?

Please tell me the process or any other way i can achieve or not..?

Thanks and Best regards,

Durga Rao V.

Accepted Solutions (0)

Answers (2)

Answers (2)

vdurgarao09
Contributor
0 Kudos

Thanks for support in scn.

Finally,I got the solution.Now i can able to change the Fiori Lanchpad .

var objShell = sap.ui.getCore().byId("shell");

var shellheadUseritem=objShell.getUser();

shellheadUseritem.attachPress(myfunction);



myfunction()

{

var userPrefrence=sap.ui.getCore().byId("userPreferencesButton");

  userPrefrence.setVisible(false);

}

Thanks & regards,

Durga Rao.

aakash_neelaperumal2
Active Participant
0 Kudos

Hi Durga,

How did you make it to work ? I used the below url to create a plugin. But its not showing up in the flp launchpad. Did you create a regular UI5 project with and just added ur code in Component.js ? Should we do anything other than whats mentioend in the below url ?

Hello World Plug-In - SAP Fiori Launchpad - SAP Library

vdurgarao09
Contributor
0 Kudos

Hi Askash,

I worked the following url.

Extending the Launchpad - SAP Fiori Launchpad - SAP Library

After that i can able to change the custom fiori lanchpad.

former_member193577
Active Contributor
0 Kudos

Hi,

Do you want to run javascript code that does something ?

For that you can use configure a custom plugin (plain js file) that will load once the Fiori Framework Page loads, and put any code that you want there.

See more details here:

Enabling Fiori Framework Page Extensions - Portal - SAP Library

Best Regards,

Tal

vdurgarao09
Contributor
0 Kudos

Hi Tal,

Thanks for the reply,

I am implementing the combination of java and html.

So please explain the steps.

Thanks and Best regards,

Durga Rao V.

former_member193577
Active Contributor
0 Kudos

Hi,

You would like to add/change how the FLP looks like?

or just add some calls (to JAVA/..) with javascript?

if its just javascript - this can use ajax or any other to call for example java servlet, etc, using the plugin.

If you would like to edit how the UI of FLP looks like, this is something else, and will require not just editing the FLPResoures, as the EP Framework page is based on FLP (which resides in UI5).

This would mean starting to edit code in the UI5 scripts...

BR,

Tal

vdurgarao09
Contributor
0 Kudos

Hi Tal,

I need to edit the UI of FLP,Please share UI5 scripts files information.And tell me which jar file having this class.

import com.sap.portal.prt.broker.IPortalModuleBroker;

import com.sap.portal.prt.broker.PortalAppBroker;

import com.sap.portal.prt.broker.PortalModuleItem;



I need to edit the sap.ushell.ui.shell.ShellHeadUserItem id="actionsBtn"  and sap.m.Popover id="__popover0" in Fiori Lanchpad. Here  dispalying the pop i need to add one more option like change password and i need to remove the server information in userPreferencesButton here i need to add user can able to upload his/her image.

Please give the example documents.

Thanks and Best regards,

Durga Rao V.

former_member193577
Active Contributor
0 Kudos

Hi,

The files you have mentioned are not related to FLP UI at all, but to portal. they are part of partcore.jar file.

Just changing the ui5 files will get you into trouble..

Here are some link about implementing custom launchpad UI in more standard way:

https://help.sap.com/saphelp_nw74/helpdata/en/11/50eb43a3b34866bb184dd95d59d0eb/content.htm

Best regards,

Tal

vdurgarao09
Contributor
0 Kudos

Hi Tal,


Thanks for your valuable time, the partcore.jar  is not available in the server location. share me the location of the jar file.

After following the "Implementing a Custom Launchpad UI" steps ,how to integrate the same in Portal level?

If possible could please share some  examples for Custom Launchpad.





Thanks and Best regards,

Durga Rao V.

former_member193577
Active Contributor
0 Kudos

Hi,

I'm sorry, i had a spell error there.

The jar file name is prtcore.jar

As for examples, i do not have such.. but i'll try to search any info about this.

Best regards,

Tal

vdurgarao09
Contributor
0 Kudos

Hi Tal,

Thanks for the reply,

Once your getting means share me.I am also searching.

Thanks and Best regards,

Durga Rao V.

vdurgarao09
Contributor
0 Kudos

Hi All,

I have created a js file in  webresource of portal 7.4.

I have wrote below code in js file.

jQuery.sap.require("sap.ushell.renderers.fiori2.RendererExtensions");

sap.ui.define([

  "sap/ui/core/mvc/Controller"

], function (Controller) {

  "use strict";

  alert("from custom controller");

var button1 = new sap.m.Button();

var rendererExt = sap.ushell.renderers.fiori2.RendererExtensions;

rendererExt.addOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);

rendererExt.removeOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);

});

I have added this file in fiori framework settings (inside advance option).

i load my fiori launchpad and i am able to see an alert box at the time of loading.

but i got one error described in below.

Cannot read property 'addOptionsActionSheetButton' of undefined - Error when loading bootstrap plugin: CustomBootstrapPlugin

Please give me a needful suggession

Thanks & regards

Durga Rao

former_member193577
Active Contributor
0 Kudos

Hi,

Try to listen first to the renderLoaded event before using renderer extensions:

function applyRendererExtensions() {

     var oRendererExtensions = jQuery.sap.getObject("sap.ushell.renderers.fiori2.RendererExtensions");

     alert("from custom controller");

     var button1 = new sap.m.Button();

     oRendererExtensions.addOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);

       oRendererExtensions.removeOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);


}


sap.ui.getCore().getEventBus().subscribe("sap.ushell.renderers.fiori2.Renderer", "rendererLoaded", applyRendererExtensions, this);

Best Regards,

Tal

vdurgarao09
Contributor
0 Kudos

Hi Tal,

Thanks for the reply,

I am using what ever your given code but still i am getting the same error.

Note: addOptionsActionSheetButton  method this unable to access.Server using the framework version is 1.28.24.

Server Version 7.4 SP-12

Thanks & regards,

Durga Rao.