11-14-2008 08:53 AM
11-17-2008 07:34 AM
11-17-2008 08:05 AM
if(space.isContainer)
{
updateCorr(space);
}
function updateCorr(node)
{
for each (n in node.children)
{
if(n.isDocument)
{
//DoSomeStuff
}
if(n.isContainer)
updateCorr(n);
}
}
This should get you going.
11-17-2008 08:44 AM
Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/0ba91e52-4a33-45bc-bbda-43cf83d7f0b3': Failed to execute script 'workspace://SpacesStore/0ba91e52-4a33-45bc-bbda-43cf83d7f0b3': needed ';' before an instruction(AlfrescoScript#1)
(last line, beginning with: I translated myself, from French).
if(space.isContainer)
{
updateCorr(space);
}
function updateCorr(node)
{
for each (n in node.children)
{
if(n.isDocument)
{
//DoSomeStuff
}
if(n.isContainer)
updateCorr(n);
}
}
Thanks very much or your answer.
11-17-2008 09:50 AM
var items = space.children;
for (var i=0; i<items.length; i++)
{
if (items[i].isDocument)
{
// do some work, such as rename the file
items[i].name = items[i].name + ".xyz";
items[i].save();
}
}
11-17-2008 11:08 AM
11-19-2008 03:32 AM
Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/0cfd1f9d-a388-4d94-8e19-60203a8b4675': Failed to execute script 'workspace://SpacesStore/0cfd1f9d-a388-4d94-8e19-60203a8b4675': Wrapped org.alfresco.service.cmr.repository.CyclicChildRelationshipException: Cyclic parent-child relationship detected: current node: 4472 current path: {http://www.alfresco.org/model/system/1.0}henry.jones/{http://www.alfresco.org/model/content/1.0}Back... next assoc: 4490 (AlfrescoScript#11)
What can be the problem?
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.