<?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: Setting properties on custom content types in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166075#M119705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For sure it is possible, you have to set up a outbound rule with script action and is subtype for the folder where your custom document types are placed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Make sure that your custom type is shown on the list of possible types for the is-subtype condition. You do this by editing web-client-config.xml, try to look for subtypes element&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Write the script which will set the custom property &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Put it in Data Dictionary/Scripts folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Set up outbound rule with Execute script action &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 10:39:09 GMT</pubDate>
    <dc:creator>dhalupa</dc:creator>
    <dc:date>2008-02-07T10:39:09Z</dc:date>
    <item>
      <title>Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166074#M119704</link>
      <description>I have a custom content type with custom properties.&amp;nbsp; I would like to set the value of some of these properties in a script that is executed by the content owner when the content is moved to another folder, i.e, contenttype1.properties["type&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertyName"] = someValue;So far I have been unable to do</description>
      <pubDate>Thu, 07 Feb 2008 02:06:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166074#M119704</guid>
      <dc:creator>slothrop</dc:creator>
      <dc:date>2008-02-07T02:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166075#M119705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For sure it is possible, you have to set up a outbound rule with script action and is subtype for the folder where your custom document types are placed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Make sure that your custom type is shown on the list of possible types for the is-subtype condition. You do this by editing web-client-config.xml, try to look for subtypes element&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Write the script which will set the custom property &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Put it in Data Dictionary/Scripts folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Set up outbound rule with Execute script action &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 10:39:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166075#M119705</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-07T10:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166076#M119706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For sure it is possible, you have to set up a outbound rule with script action and is subtype for the folder where your custom document types are placed.&lt;BR /&gt;&lt;BR /&gt;1. Make sure that your custom type is shown on the list of possible types for the is-subtype condition. You do this by editing web-client-config.xml, try to look for subtypes element&lt;BR /&gt;2. Write the script which will set the custom property &lt;BR /&gt;3. Put it in Data Dictionary/Scripts folder&lt;BR /&gt;4. Set up outbound rule with Execute script action &lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Denis&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Dennis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been unable to accomplish this.&amp;nbsp; I have tried in scripts that are executed on outbound content from the source folder and on incoming content in the destination folder.&amp;nbsp; If I define the properties as properties of a custom aspect, I can then set the values and add the aspect.&amp;nbsp; But if the properties are properties of the custom content type I can't set them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 01:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166076#M119706</guid>
      <dc:creator>slothrop</dc:creator>
      <dc:date>2008-02-12T01:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166077#M119707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Might be your custom content type definition is the problem. Try posting the model definition file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 11:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166077#M119707</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-12T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166078#M119708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First check that node is of the right type using the node browser.&amp;nbsp; Then run your script via Run Action, if your script is not doing what you think it should do, enable the JavaScript debugger and step through the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 13:46:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166078#M119708</guid>
      <dc:creator>mikef</dc:creator>
      <dc:date>2008-02-12T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting properties on custom content types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166079#M119709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The model appears to be good.&amp;nbsp; All of the properties appear and can be set when the files are uploaded and they persist when files are moved or copied from one space to another.&amp;nbsp; I can also edit them using the details view after they have been uploaded and the changes persist when the file is moved or copied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't enable the javascript debugger since I'm using jre 1.6 but I can simplify the file to the point that it only contains the setProperty statements and put setPermission statements before or after the setProperty statements.&amp;nbsp; In this case the set permission statements execute successfully but the set property statements don't, even when I hardcode the values I am setting them to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said earlier, if I define the properties in question as properties of custom aspects and they can be set and added to the content in javascript with no problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 00:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-properties-on-custom-content-types/m-p/166079#M119709</guid>
      <dc:creator>slothrop</dc:creator>
      <dc:date>2008-02-16T00:40:52Z</dc:date>
    </item>
  </channel>
</rss>

