<?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: Need help on best practices in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-help-on-best-practices/m-p/219449#M172579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got this from a friend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For what it’s worth, I have settled down on doing the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;I use noderef when ever I can. Especially when a doc ref as an argument between web scripts. Noderef, as you state, is shorter, and it remains the same even if the document moves. The Utilities object has a handy routine to get the ScriptNode object that has a given noderef (see &lt;A href="http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Utility_Functions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Utility_Functions&lt;/A&gt;) utils.GetNodeFromString(&amp;lt;noderef&amp;gt;).&lt;BR /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;I do use paths, and childByNamePath(), or childrenByXPath() when I want to do simple searches, or grab a directory to iterate through. &lt;BR /&gt;&lt;UL&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;There are cases where I know the directory name I want to iterate through, but not the noderef.&lt;BR /&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;There are rare cases where I know the filename and where it is, but not the noderef. &lt;BR /&gt;c.&amp;nbsp;&amp;nbsp;&amp;nbsp;Finally, there are cases where I want to search for files matching a given criteria.&lt;/UL&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;I have written only a couple of small scripts that act as either document actions, or as view templates for a document. In these two cases, Alfresco sets the ‘document’ object for me. However, the bulk of the time, the scrip is not working on a specific document, so the document object is not set.&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 00:28:56 GMT</pubDate>
    <dc:creator>sgartner</dc:creator>
    <dc:date>2010-03-03T00:28:56Z</dc:date>
    <item>
      <title>Need help on best practices</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-on-best-practices/m-p/219448#M172578</link>
      <description>Hi all and thanks in advance for your help.I am using Alfresco 3.2 and I am looking for advice on the best plan for passing documents around.&amp;nbsp; It seems like there are two ways: by path and by noderef.&amp;nbsp; There also seems to be something called the "current document" which I really don't get.&amp;nbsp; I am wri</description>
      <pubDate>Tue, 02 Mar 2010 08:12:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-on-best-practices/m-p/219448#M172578</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-03-02T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on best practices</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-on-best-practices/m-p/219449#M172579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got this from a friend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For what it’s worth, I have settled down on doing the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;I use noderef when ever I can. Especially when a doc ref as an argument between web scripts. Noderef, as you state, is shorter, and it remains the same even if the document moves. The Utilities object has a handy routine to get the ScriptNode object that has a given noderef (see &lt;A href="http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Utility_Functions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Utility_Functions&lt;/A&gt;) utils.GetNodeFromString(&amp;lt;noderef&amp;gt;).&lt;BR /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;I do use paths, and childByNamePath(), or childrenByXPath() when I want to do simple searches, or grab a directory to iterate through. &lt;BR /&gt;&lt;UL&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;There are cases where I know the directory name I want to iterate through, but not the noderef.&lt;BR /&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;There are rare cases where I know the filename and where it is, but not the noderef. &lt;BR /&gt;c.&amp;nbsp;&amp;nbsp;&amp;nbsp;Finally, there are cases where I want to search for files matching a given criteria.&lt;/UL&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;I have written only a couple of small scripts that act as either document actions, or as view templates for a document. In these two cases, Alfresco sets the ‘document’ object for me. However, the bulk of the time, the scrip is not working on a specific document, so the document object is not set.&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 00:28:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-on-best-practices/m-p/219449#M172579</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-03-03T00:28:56Z</dc:date>
    </item>
  </channel>
</rss>

