<?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: Set Property with Rule/Action? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220199#M173329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well i think you are choosing the complicated way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Better way will be create space/script combo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then just apply that script to all the contents in perticular space by creating rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to be an easier way as in each of scipt there will be just one line change(that is date). &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 06:47:10 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2011-02-17T06:47:10Z</dc:date>
    <item>
      <title>Set Property with Rule/Action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220196#M173326</link>
      <description>Is it possible to set properties with a rule or action?&amp;nbsp;&amp;nbsp; I have a custom aspect set up and applied to an entire folder structure with a rule, now I need to set certain properties (to a specific value) for all items in space.I don't see a way to accomplish this in the alfresco web interface.&amp;nbsp; Am I m</description>
      <pubDate>Tue, 22 Dec 2009 17:21:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220196#M173326</guid>
      <dc:creator>jk3us</dc:creator>
      <dc:date>2009-12-22T17:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property with Rule/Action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220197#M173327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes You can populate the properties with the values,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by creating one script in which you have specified the aspect along with the porperties with values which you want to give to that properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And then creating rule on space to invoke that script when content is added to that page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your script file will look like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var props = new Array(1);&lt;BR /&gt;props["training:hottopic"] = false;&lt;BR /&gt;document.addAspect("training:product_information", props);&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;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By this way you have to create the array of properties with values assigned to it,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then set that array in to your aspect. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; pretty simple.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2009 07:56:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220197#M173327</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2009-12-31T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property with Rule/Action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220198#M173328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I'm starting to look into scripting and see what all I can do with it… Here's a question I can't find an answer to… could I (the group programmer) write a script that can accept values to assign to all files in a space?&amp;nbsp; For example, we need to assign the same date to all files a space, and need to do that for several spaces (different dates for each space)… Can I write one script that a user can provide a date to do that each time?&amp;nbsp; Or must I provide a custom script for each space/date combo?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I'll provide a potential answer to my question…. If you set properties on the space itself a run a script to "propagate" certain fields to children, I think that will accomplish what I'm looking for.&amp;nbsp; But if anyone has any advice, I'd love to hear it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 19:18:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220198#M173328</guid>
      <dc:creator>jk3us</dc:creator>
      <dc:date>2010-01-08T19:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property with Rule/Action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220199#M173329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well i think you are choosing the complicated way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Better way will be create space/script combo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then just apply that script to all the contents in perticular space by creating rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to be an easier way as in each of scipt there will be just one line change(that is date). &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 06:47:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-property-with-rule-action/m-p/220199#M173329</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2011-02-17T06:47:10Z</dc:date>
    </item>
  </channel>
</rss>

