cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How we can copy the windchill dynamic url through java code?

CH_10067600
10-Marble

How we can copy the windchill dynamic url through java code?

How we can copy the windchill dynamic url through java code?

How we can achieve the to copy the windchill dynamic url through java code? from part action menu with (new action item). 

 

3 REPLIES 3

Hello @CH_10067600 

You need to describe what you are trying achieve. 

There are apis to generate URL to a object. 

 

Here is example how to get URL to persistable object detail page 

(persistable object can be any object in the system , WTPart, CADDocument, WTDocument)

 

 

NmOid workOid = new NmOid();
workOid.setRef(persistObject); // persistObject is a object as a WTPart and so on. You just need to search for them with another API....
NmAction workNmAction = NmActionServiceHelper.service.getAction("object", "view");
workNmAction.setContextObject(workOid);

String objURL = workNmAction.getActionUrlExternal();

 

 

Hope this can help

PetrH

Can it be done through javascripts ?

Could you please the steps ?

 

 

Thanks, 

Hi @CH_10067600 

I couldn't I do not know the PTC javascript library so deeply and I do not use them so often. 

I call the java method directly on the jsp page

PetrH

Announcements

Top Tags