cancel
Showing results for 
Search instead for 
Did you mean: 

Changes do not update in Fiori Launchpad

mahmood_hammood
Participant
0 Kudos

Hi Experts,

I am trying to add log icon or a text (Log Out) to the shell toolbar next to the search icon as you can see in the photo of FLP.

mahmood_hammood_0-1714579330664.png

mahmood_hammood_1-1714580505702.png

 

The issue is: I can not see the changes in Fiori Launchpad. I have tried with 

/UI2/INVALIDATE_CLIENT_CACHES ,, /UI2/INVALIDATE_GLOBAL_CACHES ,, /UI5/APP_INDEX_CALCULATE and /IWFND/CACHE_CLEANUP. /IWBEP/CACHE_CLEANUP ,, /UI2/CHIP_SYNCHRONIZE_CACHE ,, /UI2/DELETE_CACHE_AFTER_IMP ,,  /UI5/UPDATE_CACHEBUSTER ,, /UI2/INVALIDATE_GLOBAL_CACHES.

SMICM. Goto -> HTTP plugin -> Server cache -> Invalidate Locally and Globally.

I also cleared the browser cache.

No updates can I see.

 

This is my component.js file

 

sap.ui.define([
    "sap/ui/core/UIComponent"
],
function (UIComponent) {
    "use strict";

    return UIComponent.extend("logoutplugin.Component", {
        metadata: {
            manifest: "json"
        },

        init: function () {
            UIComponent.prototype.init.apply(this, arguments);
            this._createLaunchpadButton();

            
        },

        getRenderer: function () {
            var oDeferred = new jQuery.Deferred();
            this._oShellContainer = jQuery.sap.getObject("sap.ushell.Container");
            if (!this._oShellContainer) {
                oDeferred.reject("Illegal state: shell container not available");
            } else {
                var oRenderer = this._oShellContainer.getRenderer();
                if (oRenderer) {
                    oDeferred.resolve(oRenderer);
                } else {
                    this._onRendererCreated = function (oEvent) {
                        oRenderer = oEvent.getParameter("renderer");
                        if (oRenderer) {
                            oDeferred.resolve(oRenderer);
                        } else {
                            oDeferred.reject("Illegal state: shell container not available");
                        }
                    };
                    this._oShellContainer.attachRendererCreatedEvent(this._onRendererCreated);
                }
            }
            return oDeferred.promise();
        },
        _createLaunchpadButton: function () {
            this._getRenderer().fail(function (sErrorMessage) {
                jQuery.sap.log.error(sErroMessage, undefined, "shellExtended.shellExtend.Component");
            }).done(function (oRenderer) {
                var oButton = new sap.m.Button({
                    icon: "sap-icon://log",
                    tooltip: "Log Out",
                    press: function () {
                        // 
                    }
                });
        
                oRenderer.getHeaderControl().addContent(oButton, { shift: 3 });
            }.bind(this));
        }
        
    });
});

 

Thank you.

Accepted Solutions (0)

Answers (0)