cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch document path?

nikes
Champ on-the-rise
Champ on-the-rise
Dear All,

I am able to fetch path for folders using CMIS, but document properties doesn't contain cmisSmiley Tongueath property.

Any idea how can we fetch path of the document?

Thanks for any help.
2 REPLIES 2

rbkprod
Champ in-the-making
Champ in-the-making
You'll maybe need to add a custom property for this, I did it that way and used javaScript to write the path of the file to the value of the property, e.g;


document.properties["custom:myPath"] =  document.getDisplayPath();

Note: ["custom:myPath"] will be the name of your custom property.

Hope it helps.

nikes
Champ on-the-rise
Champ on-the-rise
Thanks for the reply,

I implemented it differently.

I used getObjectParents() method of NavigationService, getting folder object and fetching its cmisSmiley Tongueath property value.  Smiley Happy