Hi,
I am working on a project with several tiles (apps) and at the moment I am stock on how to get a CrossAppNavigation working.
I did read all the SAP documentation on this mater but none show a full example on to get it working and explaining its requests (index.html, component.js, etc) the best one can find is a peace of code as example on this documentation (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/907ae317-cb47-3210-9bba-e1b5e70e5c79?QuickLink=index&…).
I paste the code from page 8 to handle event function and add the sap.ushell on the index.html file; but the system keeps telling the ".services" is not know and then the "getService(""). is not apllied..
var xnavservice =
sap.ushell &&
sap.ushell.Container &&
sap.ushell.Container.getService
&&
sap.ushell.Container.getService("CrossAppNavitgation");
var href = (
xnavservice &&
xnavservice.hrefForExternal({
target : { semanticObject : "BaseInstalada", action : "abrir" },
params : { "IBASE" : "200243" }
})
) || "";
On the index.html
data-sap-ui-libs="sap.m, sap.ui.layout, sap.ushell"
Many thanks for any help you might supply.