var nodeParent = search.findNode("workspace://SpacesStore/" + nodeId);
for(var i=0 ; i < nodeParent.length; i++)
{
if (nodeParent.name == spaceTitle)
nodeNew = "exists";
}
et ça ne marche pas…// find the backup folder - create if not already exists
var backupFolder = space.childByNamePath("Backup");
if (backupFolder == null && space.hasPermission("CreateChildren"))
{
// create the folder for the first time
backupFolder = space.createFolder("Backup");
}
if (backupFolder != null && backupFolder.hasPermission("CreateChildren"))
var nodeParent = search.findNode("workspace://SpacesStore/" + nodeId);
if (!nodeParent.childByNamePath(spaceName))
{
nodeNew = nodeParent.createFolder(spaceName);
}
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.