var nombreCarpeta = "Test";
var descCarpeta = "Descripcion";
var carpeta = userhome.createFolder(nombreCarpeta);
carpeta.properties["cm:description"] = descCarpeta;
carpeta.properties.description = descCarpeta;
//Con el noderef, no hay confusion y si existe, siempre devuelve un unico nodo
var h = search.findNode(args.q); //Busco el espacio que quiero cambiar por su identificador
if (h != null)
{
h.properties["cm:description"] = args.desc; //Le asigno su nueva descripcion, la cual se encuentran en args.desc
h.save(); //Persisto los cambios.
}
status.code = 200;
status.redirect = true;
//var h = search.findNode(args.q);
var h = userhome.createFolder(args.q);
if (h != null)
{
h.properties["cm:description"] = args.desc;
h.save();
}
status.code = 200;
status.redirect = true;
var nombreCarpeta = "Test";
var descCarpeta = "Descripcion";
var carpeta = userhome.createFolder(nombreCarpeta);
carpeta.properties["cm:description"] = descCarpeta;
carpeta.save();
Saludos!
var nodes = search.luceneSearch("PATH:\"/app:company_home//cm:subCarpeta1\"");
Después, pues tendrás que aplicarle a todos esos nodos el cambio de descripción para subCarpetas1…y así con el resto de subCarpetasX.var nodes = search.luceneSearch("PATH:\"/app:company_home//cm:subCarpeta1\" OR PATH:\"/app:company_home//cm:subCarpeta2\" …");
Espero que te sirva.var nodes = search.luceneSearch("PATH:\"/app:company_home//cm:1\"");
var nodes = search.luceneSearch("PATH:\"/app:company_home//cm:_x0031_\"");
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.