<?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 create a dynamic space in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74574#M48875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi to all the folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a question about template space…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have a template space where the name is created automatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if i want that when i add a file in a folder a sub-space based on a my custom space is creating with the name (or part of it) of the file name, is it possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alessio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 16:57:58 GMT</pubDate>
    <dc:creator>alessioa_</dc:creator>
    <dc:date>2006-11-02T16:57:58Z</dc:date>
    <item>
      <title>create a dynamic space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74574#M48875</link>
      <description>Hi to all the folks,a question about template space…Is it possible to have a template space where the name is created automatically?For example if i want that when i add a file in a folder a sub-space based on a my custom space is creating with the name (or part of it) of the file name, is it possib</description>
      <pubDate>Thu, 02 Nov 2006 16:57:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74574#M48875</guid>
      <dc:creator>alessioa_</dc:creator>
      <dc:date>2006-11-02T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: create a dynamic space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74575#M48876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should be possible by using a rule in the space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can setup a rule to run some Javascript when new content is added to the space, that script could retrieve the name of the space and set the name of the content being added appropriately.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 09:33:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74575#M48876</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-11-03T09:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: create a dynamic space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74576#M48877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi gavinc, thanks for your answer…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I follow your hint, created a rule that execute my javascript file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For creating a sub-folder with the same name of the file added in the space i used this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;var docname = &lt;BR /&gt;document.name.substring(0, document.name.lastIndexOf('.'));&lt;BR /&gt;&lt;BR /&gt;var folderNode = space.createFolder(docname+"_created by script");&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;But received this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Transaction didn't commit: Failed to execute script 'workspace://SpacesStore/d6c0d062-6b44-11db-ab0d-17c8a2cd352f': Wrapped java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (AlfrescoScript#16)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful to know that the same error occours in the embedded&amp;nbsp; Alfresco example in Data Dictionary &amp;gt; Scripts &amp;gt; example test script.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the attention,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alessio A.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 10:22:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-dynamic-space/m-p/74576#M48877</guid>
      <dc:creator>alessioa_</dc:creator>
      <dc:date>2006-11-06T10:22:34Z</dc:date>
    </item>
  </channel>
</rss>

