on 12-09-2014 8:37 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kosta,
Thanks a ton for this reply. It was indeed very helpful and solved our problem.
Could you please let me know what all other methods that we have in this pathArray[index] object?
Like for example, you suggested, getLaunchURL, what are other methods available along with their functionality?
Thanks & Regards,
Amey
I just saw that Kosta answered already
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes it solved the problem.
Could you please also have a look at my reply to it and suggest if you know something about it?
Could you please let me know what all other methods that we have in this pathArray[index] object?
Like for example, you suggested, getLaunchURL, what are other methods available along with their functionality?
I tried googling on this but I couldn't see any useful javadoc or explanations on these methods.
Hi,
You can find some additional methods available in NavigationNode here:
NavigationNode Object - Portal - SAP Library
Best Regards,
Tal
Hi Amey,
Try node.getLaunchURL().
Regards,
Tamar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.