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.
file = space.createFile("file.txt"); >> MARCHE file.addAspect("cm:generalclassifiable"); >> MARCHE var nodes =search.luceneSearch("PATH:\"/cm:generalclassifiable/cm:Categ/cm:MyCateg//*\""); >> Me retourne bien toutes les categories de MyCateg file.properties["cm:categories"] = nodes[0];
backupFolder.properties["cm:categories"] = nodes[0]; backupFolder.save();
file.properties["cm:categories"]
C'est encore moi !sachant que pour attribuer une categorie à un fichier on utilise file.properties["cm:categories"] = "la categorie"Maintenant si je veux attribuer 2 catégories aux fichier, comment fait-on ?merci d'avance
var catNodeRef = search.luceneSearch("…"); var newCats = new Array(); newCats.push(catNodeRef); document.properties["cm:categories"] = newCats; document.save();