on 09-19-2018 5:58 AM
Hello,
I have developed a FLP plugin, which captures some activties by user in FLP. It works fine as expected.
User will be having many tiles in FLP, which can be custom time, standard Fiori app tile, etc..
Now my requirement is: Capture information about the tile clicked by user. For example, if user clicks a tile with Text "Create PO", I should get the tile text in my FLP plugin runtime..
I could not find anything related to this from an FLP plugin perspective.. Can someone please help me on how to achieve this..
Regards,
SAP Learner
You may try the following here..
Register appOpened event of Fiori Launchpad in onInit (say _appOpened). Now in the event handler, oParam3.text gives you the data which you are looking for..
_appOpened: function (sParam1, sParam2, oParam3, oParam4) {
var sClickedTileName = oParam3.text;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please tell in detail how can I add _appOpened event and where?
I have the same requirement and I tried to attach press event on tile like below but it doesn't work. There is no error as well.
sap.ushell.Container.getService("LaunchPage").getGroups().then(function(aGroups) {
for (var i = 0; i < aGroups.length; i++) {
var aTiles = sap.ushell.Container.getService("LaunchPage").getGroupTiles(aGroups[i]);
for (var j = 0; j < aTiles.length; j++) {
aTiles[j].getImplementationAsSapui5().getTileControl().attachPress(function(oEvent) {
console.log("Tile clicked")
});
}
}
});
Hi there,
You have a question and need help by the community? Instead of posting into an old question thread, it is more helpful for you, if you create your own question. Here is how to get started:
That's it. Thank you!
Best regards
Jennifer
Your SAP Community moderator
Hello SAP Learner,
You may check the following SAP note:
2506498 - Monitoring SAP Fiori Application Usage
Best regards,
Konstantia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.