<?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 How to Get the NodeRef of the Opened Document in Alfresco Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290768#M243898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Dudes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am planning to generate direct download link from the client side when user open a document in document details window. In order to do that I want to access noderef of the opened document. Can someone mention how to access noderef of the opened document from alfresco share client side (javascript).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 06:20:53 GMT</pubDate>
    <dc:creator>kdkanishka</dc:creator>
    <dc:date>2013-06-20T06:20:53Z</dc:date>
    <item>
      <title>How to Get the NodeRef of the Opened Document in Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290768#M243898</link>
      <description>Hello Dudes,I am planning to generate direct download link from the client side when user open a document in document details window. In order to do that I want to access noderef of the opened document. Can someone mention how to access noderef of the opened document from alfresco share client side</description>
      <pubDate>Thu, 20 Jun 2013 06:20:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290768#M243898</guid>
      <dc:creator>kdkanishka</dc:creator>
      <dc:date>2013-06-20T06:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the NodeRef of the Opened Document in Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290769#M243899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need a direct download link, but there is one already, in the Document Actions component? It looks something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/d270106f-a784-4624-8b7d-8a3e0feecf22/sample.jpg?a=true" rel="nofollow noopener noreferrer"&gt;http://dev:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/d270106f-a784-4624-8b7d-8a3e0feecf22/sample.jpg?a=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, it depends in which component you want this. Ie. Alfresco.DocumentMetadata client-side component, or WebPreview, they already have this in &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.options.nodeRef&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;. If you're building a custom Javascript module, you could also set this from the server side controller - take a look at how the two components I mentioned above do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other then that, you can simply use pure javascript. Ie. you can use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;window.location.search&amp;gt;&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;. It will give you something like &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;"?nodeRef=workspace://SpacesStore/d270106f-a784-4624-8b7d-8a3e0feecf22"&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; so you can parse the nodeRef from that in plain Javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 06:54:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290769#M243899</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-06-20T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the NodeRef of the Opened Document in Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290770#M243900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks it was very helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 09:20:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-noderef-of-the-opened-document-in-alfresco-share/m-p/290770#M243900</guid>
      <dc:creator>kdkanishka</dc:creator>
      <dc:date>2013-06-21T09:20:16Z</dc:date>
    </item>
  </channel>
</rss>

