Page 1 of 1

Change selected document in front-end programmatically

PostPosted:Thu Sep 06, 2018 7:14 am
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

Re: Change selected document in front-end programmatically

PostPosted:Fri Sep 07, 2018 7:01 am
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

Re: Change selected document in front-end programmatically

PostPosted:Sat Sep 08, 2018 4:34 am
by mamad
Thank you so much this is exactly what i was looking for :wink: