• Report or added column

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #43177  by rmichalowski
 
Hello,

What I want to do is get a list of files in a directory with the notes associated with each file. Having the date uploaded/modified would be nice. Is there any way to get this information?

Thank you

User
 #43189  by jllort
 
First you must create and script what retrieves that information ( unzip the https://wiki.openkm.com/index.php/File:Userslogin.rep and take a look at the script what is into -> is returning a hashmap ).

Basically you must get a list of documents and convert data into map ( take this code as an starting point, take in mind the print etc.. has not sense from report side, it's only for checking from scripting view )
Code: Select all
import com.openkm.api.*;
import com.openkm.bean.*;

for (Document doc : OKMDocument.getInstance().getChildren(null,"/okm:root/somepaht")) {
   // Here get notes
   print(doc.getNodes()+"<br/>");
}
 #53562  by jllort
 
Did you check the scripting in the administration > scripting feature?
What version of OpenKM do you have installed?

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.