• can not set keywords by c#

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #21667  by tgarijo
 
Hi

I'm trying to set keywords in document by c#, I'm sure that the path of document is correct, because i have one method in my class to check this. When i see document properties by navigator i can not see the keywords.... this is my code

OpenKm Version 5.1.11 snapshot build: 7903
Code: Select all
public void serKeywordtoDocument(String okmPath,  String type) {
            OKMDocumentService okmDocument = new OKMDocumentService();
            document doc = new document();
            
            String[] keywords = {type};
            
            doc.keywords = keywords;
            doc.path = okmPath;                        
            
            okmDocument.setProperties(_stoken, doc);                        
}
Regards
Tomas Garijo

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.