AnsweredAssumed Answered

need help on moving space via javascript

Question asked by miloradranitovic on Feb 20, 2009
Latest reply on Feb 20, 2009 by miloradranitovic
I am beginer in learnig alfresco, and have this problem:

I need to move space (via javascript), from space that has applyed content rule - link to category. 
Destination space doesn't have rules applyed. This is where i get the folowing error:

Failed to run Actions due to error: Found 1 integrity violations: The association parent multiplicity has been

violated: Target Node: workspace://SpacesStore/3e9054d6-527d-4c01-bf05-161262a4def1 Association: Association[


name={}ruleFolder, target

class={}systemfolder, source role=null, target role=null] Required

parent Multiplicity: 1..1 Actual parent Multiplicity: 0

Here is my javascript :

var source = companyhome.childByNamePath("Pisarnica/TEMP");

var destination = companyhome.childByNamePath("Pisarnica/DEST");

      items = source.children;

      for each(item in items)
What is the right way to do this, and is there any other way?

Thanks, any help is welcome.