07-05-2007 03:23 PM
//Get category node
var nodeRef = search.luceneSearch("…");
//Get categories from file
var cats = file.properties["cm:categories"];
//Add new category
cats.push(nodeRef);
//Update file categories
file.properties["cm:categories"] = cats;
Java class "java.lang.Object" has no public instance method or field named "1".
07-06-2007 08:27 AM
//Get category node
var nodeRef = search.luceneSearch("…");
//Get categories from file
var cats = file.properties["cm:categories"];
//Add new category
var newCats = new Array();
for (var i=0; i<cats.length; i++)
{
newCats[i] = cats[i];
}
newCats.push(nodeRef);
//Update file categories
file.properties["cm:categories"] = newCats;
07-06-2007 01:00 PM
08-07-2007 07:18 AM
08-07-2007 08:26 AM
08-07-2007 08:57 AM
var catNodeRef = search.luceneSearch("…");
var cats = document.properties["cm:categories"];
var newCats = new Array();
for (var i=0; i < cats.length; i++)
{
newCats[i] = cats[i];
}
newCats.push(catNodeRef);
document.properties["cm:categories"] = newCats;
document.save();
08-07-2007 09:07 AM
var catNodeRef = search.luceneSearch("…");
var catNodeRef = search.luceneSearch("…")[0];
08-07-2007 10:05 AM
08-23-2007 11:55 AM
08-23-2007 01:20 PM
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.