cancel
Showing results for 
Search instead for 
Did you mean: 

Get clicked Tile details in FLP Plugin

fahad_saplearning
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

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;
}
fahad_saplearning
Participant
0 Kudos

Worked for me..

alexandrefossati
Explorer
0 Kudos

How can I register a event in Fiori Launchpad?

akshaya_p
Contributor
0 Kudos

Hi

How to get teh launchpad instance here to attachevent?

akshaya_p
Contributor
0 Kudos

Hi Fahad

Can you please help on this

0 Kudos

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")
                            });
                        }
                }
            });
former_member34
Product and Topic Expert
Product and Topic Expert
0 Kudos

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:

  1. Learn about asking and answering questions in SAP Community with this tutorial: https://developers.sap.com/tutorials/community-qa.html
  2. Ask your detailed question here: https://answers.sap.com/questions/ask.html
  3. Wait for a response.

That's it. Thank you!

Best regards

Jennifer

Your SAP Community moderator

Answers (1)

Answers (1)

former_member235383
Active Participant
0 Kudos

Hello SAP Learner,

You may check the following SAP note:

2506498 - Monitoring SAP Fiori Application Usage

Best regards,

Konstantia