<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to copy a list of associations??? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167517#M121039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.assocs is indeed read-only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.createAssociation will create an association to the target node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By iterating on the source node assocs collection, you should be able to copy the assocations collections.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 16:03:45 GMT</pubDate>
    <dc:creator>dgenard</dc:creator>
    <dc:date>2008-06-06T16:03:45Z</dc:date>
    <item>
      <title>How to copy a list of associations???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167514#M121036</link>
      <description>Hi,Is there any way in Alfresco to copy a list of associations from one document to another??This is my situation: I have a document that has an association in it's model definition with the following code:&amp;lt;association name="zis&lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;istributionList"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Distribution List&amp;amp;l</description>
      <pubDate>Thu, 15 May 2008 11:19:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167514#M121036</guid>
      <dc:creator>motion11</dc:creator>
      <dc:date>2008-05-15T11:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a list of associations???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167515#M121037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the node method &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; createAssociation(ScriptNode target, string assocType)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This method is not supported by older Alfresco releases however (before 2.1 if I remember well).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details on &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Modifying_and_Creating_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Modifying_and_Creating_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 20:57:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167515#M121037</guid>
      <dc:creator>dgenard</dc:creator>
      <dc:date>2008-05-15T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a list of associations???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167516#M121038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply Denis, but that didn't solve the problem either. The method you suggested creates the association, but that is not what I'm trying do to. Because, when the association is created I still have to copy the data from another file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that this is actually not possible from JavaScript. Association field in the content has only read method in JavaScript. Instead, I will have to dig into Alfresco Java SDK and try to solve the problem by writing some Java code and deploying it onto the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still in the process of figuring out how to achieve my goal through Java. If you have any helpful ideas or suggestions please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyway!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 12:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167516#M121038</guid>
      <dc:creator>motion11</dc:creator>
      <dc:date>2008-06-06T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a list of associations???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167517#M121039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.assocs is indeed read-only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.createAssociation will create an association to the target node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By iterating on the source node assocs collection, you should be able to copy the assocations collections.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 16:03:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-copy-a-list-of-associations/m-p/167517#M121039</guid>
      <dc:creator>dgenard</dc:creator>
      <dc:date>2008-06-06T16:03:45Z</dc:date>
    </item>
  </channel>
</rss>

