<?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 get NodeRef of a document using javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184118#M137248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to do a search for the customer's signature file and you'd obtain the nodeRef from that. Depends what you've got to search on: name, folder, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. search.luceneSearch("+@cm\\:name:" + customer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 13:07:15 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2009-02-03T13:07:15Z</dc:date>
    <item>
      <title>How to get NodeRef of a document using javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184115#M137245</link>
      <description>Hi, I would like to write a JavaScript that associates a file with some already existing document in the repository as soon as the file is uploaded. I know I can use the createAssociation function but I have some trouble getting the nodeRef for the documents. So my question is: How can I get the Nod</description>
      <pubDate>Tue, 03 Feb 2009 10:13:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184115#M137245</guid>
      <dc:creator>sbsrulz</dc:creator>
      <dc:date>2009-02-03T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get NodeRef of a document using javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184116#M137246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That depends on how you want to find the document in order to get it's nodeRef.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out the JavaScript API here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API_For_Alfresco_2.1" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API_For_Alfresco_2.1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;…and also the Cookbook with a number of examples here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;You can also browse through "out of the box" JavaScript code by starting from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/alfresco/service/index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:42:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184116#M137246</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-02-03T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get NodeRef of a document using javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184117#M137247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been through the examples but I couldn't sort out my prob. Here's my scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom content type of 'customer form' that the admin uploads to a space. The customer's signature files (images) are uploaded to a separate space. Now I want the customer's form to be associated automatically with his signature file as soon as the customer's form are uploaded. I have the types defined and can do all this in the web client but I want to use Javascript to handle this situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to use CreateAssociation() but I need nodeRef or ScriptNode in order to refer to the customer's form and their signature files. How can I get that? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A little elaboration would be helpful…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:46:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184117#M137247</guid>
      <dc:creator>sbsrulz</dc:creator>
      <dc:date>2009-02-03T12:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get NodeRef of a document using javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184118#M137248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to do a search for the customer's signature file and you'd obtain the nodeRef from that. Depends what you've got to search on: name, folder, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. search.luceneSearch("+@cm\\:name:" + customer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:07:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184118#M137248</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-02-03T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get NodeRef of a document using javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184119#M137249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike… Got it &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 11:14:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-of-a-document-using-javascript/m-p/184119#M137249</guid>
      <dc:creator>sbsrulz</dc:creator>
      <dc:date>2009-02-13T11:14:05Z</dc:date>
    </item>
  </channel>
</rss>

