<?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: [Solved] Change an action following conditions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223561#M176691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any help please !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 11:59:29 GMT</pubDate>
    <dc:creator>lamba</dc:creator>
    <dc:date>2010-04-21T11:59:29Z</dc:date>
    <item>
      <title>[Solved] Change an action following conditions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223559#M176689</link>
      <description>Hello everybody,I have created 2 new actions in Share (v3.2r2) for documents and they work well.However I would like to change the action if the document has certain aspect.I tried the steps in this post http://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=22737&amp;amp;p=74582&amp;amp;hilit=actionSet#p74</description>
      <pubDate>Tue, 09 Mar 2010 11:29:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223559#M176689</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-03-09T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] Change an action following conditions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223560#M176690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also tried to modify files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;STRONG&gt;action-sets.lib.js&lt;/STRONG&gt;&lt;SPAN&gt; by adding the condition&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (itemStatus.indexOf("newed") != -1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; actionSet = "newed";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&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;SPAN&gt;- And &lt;/SPAN&gt;&lt;STRONG&gt;filters.lib.js&lt;/STRONG&gt;&lt;SPAN&gt; by adding the filter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FilterQueryDefaults = "-ASPECT: \ " {http: // &lt;A href="http://www.new.com" rel="nofollow noopener noreferrer"&gt;www.new.com&lt;/A&gt; / model / t / 1.0} custom:new \ "";&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that did not work&amp;nbsp; :!: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody to help me please.&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:30:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223560#M176690</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-03-11T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] Change an action following conditions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223561#M176691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any help please !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 11:59:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223561#M176691</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-04-21T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] Change an action following conditions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223562#M176692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Setting the actionSet to "newed" should make that set of actions appear for those documents with the aspect. However, adding that line to filters.lib.js tells the search query to not return any nodes that have the aspect (the minus sign in front means "not").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 12:16:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223562#M176692</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-04-21T12:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] Change an action following conditions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223563#M176693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact it is as Mike described in the post: &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=22737&amp;amp;p=74582&amp;amp;hilit=actionSet#p74582" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=22737&amp;amp;p=74582&amp;amp;hilit=actionSet#p74582&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The steps are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Modify the file "doclist.get.js " by adding the logic of display of the actions, in the section:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for each (asset in assets)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Modify the file "doclist.get.json.ftl " by adding new permissions in the section " userAccess ". For exp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;"my-action": ${item.enableMyAction?string}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;These permissions allow show/mask each of the actions according to a condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Modify the file "documentlist.get.config.xml " by associating every permission with its corresponding action. For exp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;action type="action-link" id="onActionMyAction" permission="my-action" label="actions.document.my-action" /&amp;gt;&lt;SPAN class="line-numbers-rows"&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;Thank you all &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 14:01:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-change-an-action-following-conditions/m-p/223563#M176693</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-08-18T14:01:09Z</dc:date>
    </item>
  </channel>
</rss>

