How to open folder if know folder's uuid using javascript

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
nhan@intra.co.kr
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Mon Aug 17, 2020 6:15 am

How to open folder if know folder's uuid using javascript

Post by nhan@intra.co.kr »

Suppose I'm in PDF.js viewer javascript (I have a customized PDF.js version). How to call function to open a OpenKM folder when know folder's uuid.
jllort
Moderator
Moderator
Posts: 11479
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to open folder if know folder's uuid using javascript

Post by jllort »

Take a look at this documentation section https://docs.openkm.com/kcenter/view/ok ... t-api.html, you can open any kind of node ( folder, document, etc... ). I suggest you use this one jsOpenPathByUuid

Finally, remember the preview feature is in a Iframe, that means the javascript method is exposed from the parent. To get working the call you need:

Code: Select all

parent.jsOpenPathByUuid(uuid);
or maybe parent.parent ( should check )
Post Reply