<?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: Javascript function to get alfresco document by noderef id? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174135#M127265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi did you find any solution for this one? I have the exact same requirement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 15:10:06 GMT</pubDate>
    <dc:creator>roger16</dc:creator>
    <dc:date>2012-10-25T15:10:06Z</dc:date>
    <item>
      <title>Javascript function to get alfresco document by noderef id?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174133#M127263</link>
      <description>Hi, I'm beginning to get the feeling this may not be the best forum to post questions about writing custom views in FTL's, but I couldn't find one that's more related. So if this question is in the wrong forum, please let me know!Now for my question… I would like to know if it's somehow possible to</description>
      <pubDate>Thu, 21 Aug 2008 08:59:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174133#M127263</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-08-21T08:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function to get alfresco document by noderef id?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174134#M127264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I've already found a (workaround) solution to my problem (however I'd still like an answer on the original question). I was already using an AJAX call to do something to the document, and I forgot that I could just return the single value that I'd need. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var url = '/alfresco/command/script/execute/workspace/SpacesStore/SCRIPT_ID/workspace/SpacesStore/' + documentID;&lt;BR /&gt;YAHOO.util.Connect.asyncRequest('GET', url,{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;success: function(o) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the text I need to change is inside a span with id = documentID…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(documentID).innerHTML= o.responseText;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;});&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there perhaps a way to return the entire document? It wouldn't be as clean as that "magical_function" I'm looking for, but at the moment it does the job for me…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 09:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174134#M127264</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-08-21T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function to get alfresco document by noderef id?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174135#M127265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi did you find any solution for this one? I have the exact same requirement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 15:10:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174135#M127265</guid>
      <dc:creator>roger16</dc:creator>
      <dc:date>2012-10-25T15:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function to get alfresco document by noderef id?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174136#M127266</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;SPAN&gt;you can find a node by nodeRef using the Search API as reported here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Search_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Search_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Pay particular attention to the findNode method which comes with a lot of different signatures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find the variant that suits for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 08:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-to-get-alfresco-document-by-noderef-id/m-p/174136#M127266</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-26T08:00:19Z</dc:date>
    </item>
  </channel>
</rss>

