<?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 Create association between 2 nodes using GUID in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-association-between-2-nodes-using-guid/m-p/205705#M158835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am stuck on a Javascript webscript that gets the GUID of a node and needs to create an association to another node.&amp;nbsp; Here's the scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A "design" is made up of several "art" files.&amp;nbsp; The webscript's intent is to create the "design" node and associate the "design" node to the "art" nodes that are in the "design."&amp;nbsp; The client program POSTs all the information to create the "design" node including a list of the associated "art" GUIDs.&amp;nbsp; I create the "design" node and create all the correct properties.&amp;nbsp; Now I need to create the associations.&amp;nbsp; I have the GUIDs, but I'm stuck on how I create ScriptNodes for the "art" nodes so that I have the source/destination for the association.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found another post that says that creating a ScriptNode is very simple given the GUID.&amp;nbsp; It links to the JavaScript API doc on the wiki, but I'm completely missing it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 13:32:37 GMT</pubDate>
    <dc:creator>spdaly</dc:creator>
    <dc:date>2009-05-04T13:32:37Z</dc:date>
    <item>
      <title>Create association between 2 nodes using GUID</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-association-between-2-nodes-using-guid/m-p/205705#M158835</link>
      <description>I am stuck on a Javascript webscript that gets the GUID of a node and needs to create an association to another node.&amp;nbsp; Here's the scenario:A "design" is made up of several "art" files.&amp;nbsp; The webscript's intent is to create the "design" node and associate the "design" node to the "art" nodes that are</description>
      <pubDate>Mon, 04 May 2009 13:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-association-between-2-nodes-using-guid/m-p/205705#M158835</guid>
      <dc:creator>spdaly</dc:creator>
      <dc:date>2009-05-04T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create association between 2 nodes using GUID</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-association-between-2-nodes-using-guid/m-p/205706#M158836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would just query for the nodes by ID. If you want to be lazy, you can assume the Store ID and use the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var node = search.findNode("workspace://SpacesStore/" + args.id);&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;I'm not really sure what to do if you don't want to hardcode the Store.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 08:20:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-association-between-2-nodes-using-guid/m-p/205706#M158836</guid>
      <dc:creator>lyamamot</dc:creator>
      <dc:date>2009-05-09T08:20:19Z</dc:date>
    </item>
  </channel>
</rss>

