Page 1 of 1

can not set keywords by c#

PostPosted:Mon Mar 11, 2013 4:52 pm
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

Re: can not set keywords by c#

PostPosted:Tue Mar 12, 2013 12:01 pm
by jllort
You should use OKMPropertyservice

Re: can not set keywords by c#

PostPosted:Tue Mar 12, 2013 12:35 pm
by tgarijo
Ok jllort

works fine. Thank You