08-26-2008 07:13 PM
function main()
{
if(!args.property)
{
return "Missing required request parameter: property";
}
var nodes = search.luceneSearch("TYPE:\"{www.fmcStars.nk.com/model/webcontent/1.0}downloadable\"");
var propertyName = args.property;
var str = "Deleted Property '"+ propertyName+" from the following Nodes:<hr>\r\n";
for each (var node in nodes)
{
node.properties.delete(propertyName);
node.save(); // This method uses NodeService.setProperties(), which should remove any properties from the Node that are not in the node.properties map.
str += node.name+"<br>\r\n";
}
return str;
}
main();
12-01-2008 05:14 PM
delete node.properties[propertyName];
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.