• OKMPropertyGroups->setProperties

  • 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.
 #21634  by olsonea
 
Quick question: setProperties method is defined as such: void setProperties(String token, String nodePath, String grpName, FormElementComplex[] properties).

Do I need to update the entire PropertyGroup, or can I update specific array elements, and leave out the ones that I don't care about? I really only want to update value, not height, type, etc.
 #21648  by jllort
 
There's other method you should use called setPropertiesSimple ( Is available from ws too ) :
Code: Select all
Map<String,String> properties = new HashMap<String,String();
properties.put("some_property_key","some value");
OKMPropertyGroup.getInstance().setPropertiesSimple(token, docPath, groupName, properties);
Using this method you only update some values, not all.

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.