Page 1 of 1

WS Last modified Docs

PostPosted:Wed Apr 23, 2014 9:45 am
by michaeled
Hi,

I'd like to show the five last modified documents (who the user have read permission), I don't know how to do that with the Complex search (without retrieving all the documents).

What functions are to be used to do something like that ?

Thanks for your help,

Michael.

Re: WS Last modified Docs

PostPosted:Thu Apr 24, 2014 3:16 pm
by jllort
In Dashboard there're some methods to get user last modified documents, but these methods only consider logged user:
Code: Select all
for (DashboardDocumentResult documentResult : OKMDashboard.getInstance().getUserLastModifiedDocuments(null)) {
    GWTDashboardDocumentResult documentResultClient = GWTUtil.copy(documentResult);
    lastModifiedList.add(documentResultClient);
}
Useful links:
http://wiki.openkm.com/index.php/Scripting_-_OpenKM_6.2
http://doxygen.openkm.com/openkm/d5/d71 ... board.html

We will need more information about it, explain the scenario and we will suggest something with more detail.