Skip to Content

Getting PCD location of a navigation target from short URL

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2014 at 11:23 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Dec 09, 2014 at 12:48 PM

    I just saw that Kosta answered already 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2014 at 12:00 PM

    Hi Amey,

    Try node.getLaunchURL().

    Regards,

    Tamar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.