<?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 Javascript help needed in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231023#M184153</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;BR /&gt;&lt;SPAN&gt;Im no javascript programmer: can anybody post me an example for a java script which moves all existing content files from space to a subspace? I cannot use a simple rule because the action should be triggered by a single flagfile and a simple rule then would only apply the action on this triggering flagfile alone instead of on all documents in the space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Mar 2010 17:19:44 GMT</pubDate>
    <dc:creator>thk</dc:creator>
    <dc:date>2010-03-23T17:19:44Z</dc:date>
    <item>
      <title>Javascript help needed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231023#M184153</link>
      <description>HiIm no javascript programmer: can anybody post me an example for a java script which moves all existing content files from space to a subspace? I cannot use a simple rule because the action should be triggered by a single flagfile and a simple rule then would only apply the action on this triggerin</description>
      <pubDate>Tue, 23 Mar 2010 17:19:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231023#M184153</guid>
      <dc:creator>thk</dc:creator>
      <dc:date>2010-03-23T17:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript help needed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231024#M184154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var subspace = space.childByNamePath("name of subspace");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i in space.children) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if ( space.children&lt;/SPAN&gt;&lt;EM&gt;.name != "flagfilename" ) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; space.children&lt;EM&gt;.move(subspace);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;—&lt;BR /&gt;of course, you need to put in some sanity checks.&lt;/EM&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 22:32:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231024#M184154</guid>
      <dc:creator>invictus9</dc:creator>
      <dc:date>2010-03-24T22:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript help needed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231025#M184155</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;BR /&gt;&lt;SPAN&gt;I tried your version but nothing happpens (neither trigger nor other files are moved).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really don't understand it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That works but only moves the trigger_file not the other files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var dss = space.childByNamePath("DSS");&lt;BR /&gt;document.move(dss);&lt;SPAN class="line-numbers-rows"&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;This doesn't work, nothing happens (neither trigger nor other files are moved) but why?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;function movedoc(document)&lt;BR /&gt;{&lt;BR /&gt;var dss = space.childByNamePath("DSS");&lt;BR /&gt;for each (file in space.children)&lt;BR /&gt;{&lt;BR /&gt;file.move(dss);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;movedoc(document);&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;And here also nothing happens:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var dss = space.childByNamePath("DSS");&lt;BR /&gt;for each (file in space.children)&lt;BR /&gt;{&lt;BR /&gt;file.move(dss);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 15:46:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-help-needed/m-p/231025#M184155</guid>
      <dc:creator>thk</dc:creator>
      <dc:date>2010-03-26T15:46:59Z</dc:date>
    </item>
  </channel>
</rss>

