cancel
Showing results for 
Search instead for 
Did you mean: 

Customize click event on Fiori Launchpad Tile

Hello Experts,

We have a requirement to display a pop-up message after click event on a Fiori Launchpad tile (if tile is accessed through desktop).

Can you please help me to perform such customization? I am aware that I have to use "CrossApplicationNavigation" and check intent (SAP Note 2591289) but, I am not sure how to achieve this through Fiori Launchpad extension.

Thanks in advance,

Saurabh Kerkar

Former Member
0 Kudos

is this standard tile or custom?

Accepted Solutions (0)

Answers (2)

Answers (2)

pramod_nagargoje
Explorer
0 Kudos

HI Saurabh,

This you can achieve by putting simple code extension using javascript on FioriLaunchpad.html page which you can replace with your custom launchpad page.

Regards,

Ravi Soni

CristianBabei
Contributor
0 Kudos

Your tile calls a Z app ? o a TCode?

If Zapp, You could in Component.js, detect the device type, and if it's Desktop, don't initialize your app, and just show an error and send user back to launchpad, using:

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
oCrossAppNavigator.toExternal({
	target: {
		semanticObject: "#"
	}
});

Also, remember you have the option to not display tiles on some devices, when you create the Tiles, you can choise for wich devices them will be available 🙂

0 Kudos

Hi Cristian,

Thank you very much for your reply.

It s a BI Dashboard that we are calling through the URL. and we have selected Mobile and Tablet in intent section. Still, due an SAP recognized bug for which they have released an SAP Note 2591289 we see the tile on the desktop.

In order to make sure user does not get confused, we need to pop an error message once users click on the tile when using via desktop.

I am trying to use following link: Add System Information on Fiori Launchpad as a way to go ahead! Do you think this will push me towards the required result?

Regards,

Saurabh


CristianBabei
Contributor
0 Kudos

Hello Saurabh,

Not usefull, the link just shows you how to display info / new content on your launchpad, basically a Launchpad Plugin.

But, as I understand, you are callling an URL, so your app opens in a new window, so the way above don't works for you. But you could insteed of going back to launchpad, close the tab. JS gives the options to close current tab. So inside your dashboard app, check if desktop and if yes, close it.

This should work 🙂