Hello,
My requirement is to get actual pcd location or actual full path of a navigation node from it's short url.
I have a JSPDynpage DC where I am using EPCM API to get navigation using below code: -
EPCM.subscribeEvent("urn:com.sapportals:navigation", "Navigate", NavigationEvent);
function NavigationEvent(evntInput){
var pathArray = EPCM.getSAPTop().LSAPI.AFPPlugin.model.getCurrentSelectedPath();
var path = pathArray[0].getTitle() ;
for(var index = 1; index < pathArray.length; index++)
{
path = path +">" + pathArray[index].getName();
}
}
Now, this getName method of navigation node is returning value like "navurl://fhwrfgh6756734bhvbhvgeygrfgg463"
From this 'path', I some how need to get node's PCD location or direct actual URL.
Is there any way to get it?
Thanks & Regards,
Amey
Hi,
If pathArray[index] is a launchable navigation node, then you can try getting the PCD location by pathArray[index].getLaunchURL(). If it is not a launchable navigation node (folder, role, etc), then it will return null.
Best Regards,
Kosta Slobodkin.
I just saw that Kosta answered already 😊
Hi Amey,
Try node.getLaunchURL().
Regards,
Tamar
Add a comment