<?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 Can the association order be defined? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183083#M136213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently doing a project using a lot of associations. The order of these associations is very important to me, because I am using things like "element.assocs['ns:elementAssoc'][0]" in my freemarker templates. Now, if I want to keep my template in shape, but instead just switching my first association of "element", can I do this with the Java API? It seems that nodeService.createAssociation() simply appends to the currently existing associations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, simply debugging into the createAssociation method didn't really prove successful yet, as some library either changes the bytecode (spring aop maybe) or the source code supplied with the SDK of Alfresco Labs 3b is not the correct one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So any hints and tips, how I could force a certain order of Associations - or how I could just exchange two associations - are gratefully accepted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and have a nice day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Alexander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 15:13:08 GMT</pubDate>
    <dc:creator>alr</dc:creator>
    <dc:date>2008-10-29T15:13:08Z</dc:date>
    <item>
      <title>Can the association order be defined?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183083#M136213</link>
      <description>Hello,I am currently doing a project using a lot of associations. The order of these associations is very important to me, because I am using things like "element.assocs['ns:elementAssoc'][0]" in my freemarker templates. Now, if I want to keep my template in shape, but instead just switching my firs</description>
      <pubDate>Wed, 29 Oct 2008 15:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183083#M136213</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2008-10-29T15:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can the association order be defined?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183084#M136214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps removing all the associations and adding them again in the correct order might help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure this is a good idea - it may have knock-on effects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:32:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183084#M136214</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2008-10-30T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can the association order be defined?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183085#M136215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I considered this as a last resort solution, as you have to parse all associations, and remove all (if you want to replace the first one), only to add them again. But right now, there does not seem another possibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Alexander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 12:53:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-the-association-order-be-defined/m-p/183085#M136215</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2008-10-30T12:53:38Z</dc:date>
    </item>
  </channel>
</rss>

