<?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: Displaying associations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244206#M197336</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;A href="http://wiki.alfresco.com/wiki/3.0_JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will be a good starting point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the ScriptNode API part of the Cookbook:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- assocs&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;A readonly associative array (map) of the target associations of the node. Each named entry in the array contains an Array of the ScriptNode objects on the end of the association. For example: mynode.assocs["cm:translations"][0].&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;- sourceAssocs &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;A readonly associative array (map) of the source associations to this node. Each named entry in the array contains an Array of the ScriptNode objects on the start of the association. For example: mynode.sourceAssocs["cm:translations"][0]. &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 12:43:23 GMT</pubDate>
    <dc:creator>lista</dc:creator>
    <dc:date>2009-10-07T12:43:23Z</dc:date>
    <item>
      <title>Displaying associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244205#M197335</link>
      <description>I've adapted the folder.get web script from the samples (I'm running Alfresco Community 3.2) in order to display content on our intranet.I've also added a custom content type that holds related documents as associations, and I'm now trying to adapt the folder.get script further to display links to r</description>
      <pubDate>Wed, 07 Oct 2009 09:50:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244205#M197335</guid>
      <dc:creator>willdavidson</dc:creator>
      <dc:date>2009-10-07T09:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244206#M197336</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;A href="http://wiki.alfresco.com/wiki/3.0_JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will be a good starting point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the ScriptNode API part of the Cookbook:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- assocs&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;A readonly associative array (map) of the target associations of the node. Each named entry in the array contains an Array of the ScriptNode objects on the end of the association. For example: mynode.assocs["cm:translations"][0].&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;- sourceAssocs &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;A readonly associative array (map) of the source associations to this node. Each named entry in the array contains an Array of the ScriptNode objects on the start of the association. For example: mynode.sourceAssocs["cm:translations"][0]. &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 12:43:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244206#M197336</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2009-10-07T12:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244207#M197337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks - that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a bit further on now, have got documents displaying with the associations listed beneath where they exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT the associations are node refs (e.g. workspace://SpacesStore/ae8813d6-11da-4a2f-8817-79426c5bc3a3). I've read about the DownloadContentServlet at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability&lt;/A&gt;&lt;SPAN&gt; but this servlet wants the file name, which I don't have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i) Is there a way to get the file name of the content from the node ref so I can build the full URL for the DownloadContentServlet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ii) Am I barking up the wrong tree and there's a better way to get from my node ref associations to a 'download content' URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help, it is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 11:59:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244207#M197337</guid>
      <dc:creator>willdavidson</dc:creator>
      <dc:date>2009-10-09T11:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244208#M197338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've cracked it. My code is too ugly to post right now but I'm happy to share once I've tidied it up.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 20:05:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-associations/m-p/244208#M197338</guid>
      <dc:creator>willdavidson</dc:creator>
      <dc:date>2009-10-09T20:05:25Z</dc:date>
    </item>
  </channel>
</rss>

