<?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: scriptNode.sourceAssocs instead of assocs for targets? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135616#M95155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you have a dev/labs build as getSourceAssocs was only added to the JavaScript ScriptNode API in the last month or so.&amp;nbsp; That is why it is not documented yet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var sourceAssocs = node.sourceAssocs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This returns a map of assoc qname to a list of nodes. Basically it works identically to the node.assocs Target Associations API that you have already used but it returns source assocs instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 19:19:44 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2008-01-23T19:19:44Z</dc:date>
    <item>
      <title>scriptNode.sourceAssocs instead of assocs for targets?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135615#M95154</link>
      <description>Is there a way to get the source associations of a node? assocs returns only the target association.I found org.alfresco.repo.jscript.ScriptNode.getSourceAssocs() in the code but I don't understand how the java object is hooked to the javascript object.Thanks,Marc</description>
      <pubDate>Fri, 11 Jan 2008 13:29:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135615#M95154</guid>
      <dc:creator>hu2hugo</dc:creator>
      <dc:date>2008-01-11T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: scriptNode.sourceAssocs instead of assocs for targets?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135616#M95155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you have a dev/labs build as getSourceAssocs was only added to the JavaScript ScriptNode API in the last month or so.&amp;nbsp; That is why it is not documented yet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var sourceAssocs = node.sourceAssocs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This returns a map of assoc qname to a list of nodes. Basically it works identically to the node.assocs Target Associations API that you have already used but it returns source assocs instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 19:19:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135616#M95155</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2008-01-23T19:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: scriptNode.sourceAssocs instead of assocs for targets?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135617#M95156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin, source and running instance were indeed out of sync &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:. Everything is fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 11:14:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scriptnode-sourceassocs-instead-of-assocs-for-targets/m-p/135617#M95156</guid>
      <dc:creator>hu2hugo</dc:creator>
      <dc:date>2008-02-16T11:14:08Z</dc:date>
    </item>
  </channel>
</rss>

