• Change selected document in front-end programmatically

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #46733  by mamad
 
hi guys,
As you know, when we click on a document in File Browser Tab , it will be chosen and its row will be blue color.So i want to know can we select a document programmatically and without clicking on it in a frontend class ?

For example consider we have a button inside tab document or menu bar and every time we click on it, a document with a specified uuid will be select in file browser tab.

I look into FIleBrowserCommunicator and find some methods like isDocumentSelected() but they can not satisfy my requirement.
Im looking for a method like setDocumentSelected(String uuid).is there any method like this in openkm api ?

Thanks in advance
 #46740  by jllort
 
If you integrate own jsp with iframe should use jsOpenPathByUuid(String) -> https://docs.openkm.com/kcenter/view/ok ... t-api.html
If you are extending GWT code then should use openPathByUuid(String uuid) from GeneralCommunicator class -> https://docs.openkm.com/kcenter/view/ok ... stuff.html

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.