06-02-2015 03:12 PM
var nodes = search.luceneSearch("<Sitename>/Meetings/", "English");
var categories = new Array(10);
categories.push("English");
for (var node in nodes){
for each (doc in node.children)
doc.properties["cm:categories"] = categories;
doc.save();
}
}
06-19-2015 11:11 AM
var catnode = search.luceneSearch("testcat")[0];
var node = companyhome.childByNamePath("Sites").childByNamePath("sitename").childByNamePath("documentLibrary").childByNamePath("test");
var cats = node.properties["cm:categories"];
var newCats = new Array();
for (var i=0; i<cats.length; i++)
{
newCats = cats;
}
newCats.push(catnode);
node.properties["cm:categories"] = newCats;
node.save();
06-25-2015 10:15 AM
var catnode = search.luceneSearch("PATH:\"/cm:generalclassifiable//cm:Place\"")[0];
var nodes = search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:myside/cm:documentLibrary/cm:test/*\" AND cm:name:\"English\"");
for (var node in nodes) {
for each (n in node.children)
{
// if (n.isDocument) {
var cats = n.properties["cm:categories"];
var newCats = new Array();
if (cats != null) {
for (var i=0; i<cats.length; i++)
{
newCats = cats;
}
}
newCats.push(catnode);
n.properties["cm:categories"] = newCats;
n.save();
// }
}
}
var nodes = search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:myside/cm:documentLibrary/cm:test/*\" AND cm:name:\"English\"");
var nodes = search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:myside/cm:documentLibrary/cm:test/*\" AND @cm\\:name:\"English\"");
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.