As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var catNodeRef = search.luceneSearch("…"); var cats = document.properties["cm:classifiable"]; cats.push(catNodeRef);
document.addAspect("cm:versionable"); document.addAspect("cm:generalclassifiable"); for each (cl in classification.getAllCategoryNodes("cm:generalclassifiable")){ if(cl.name == "Test Plan"){ document.properties["cm:categories"].push(cl); } }
document.properties["cm:categories"].push(cl);
<aspect name="cm:generalclassifiable"> <title>General Classifiable</title> <parent>cm:classifiable</parent> <properties> <property name="cm:categories"> <title>Categories</title> <type>d:category</type> <mandatory>false</mandatory> <multiple>true</multiple> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> </properties> </aspect>