2 weeks ago - last edited 2 weeks ago
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.
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.
User | Count |
---|---|
77 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.