<?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: How to hide an action present in another addon in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2018#M154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the input Douglas. This action was in a addon and I didn't have access to the source code. &amp;nbsp;I did what you have mentioned in the last but somehow I was not able to hide the action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 11:50:23 GMT</pubDate>
    <dc:creator>hiten_rastogi1</dc:creator>
    <dc:date>2017-02-03T11:50:23Z</dc:date>
    <item>
      <title>How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2016#M152</link>
      <description>Hi,I have a requirement where I have to hide a custom action specified in an addon that I am using in my code. The action is required for a rule but I want to hide the action from users in document library and document preview page. I have tried the below way to hide the action but so far I am not s</description>
      <pubDate>Tue, 03 Jan 2017 06:14:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2016#M152</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2017-01-03T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2017#M153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the source code for this addon?&lt;/P&gt;&lt;P&gt;If you do, why not to simply comment the block where the action is defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have the source code, you can try to copy the full block from the Share's code and change only what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:22:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2017#M153</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-01-31T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2018#M154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the input Douglas. This action was in a addon and I didn't have access to the source code. &amp;nbsp;I did what you have mentioned in the last but somehow I was not able to hide the action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 11:50:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2018#M154</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2017-02-03T11:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2019#M155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;/P&gt;&lt;P&gt;If you have the AMP files, then you can extract the share configuration files from it, as it is a zip file with a different extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try that and let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:44:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2019#M155</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-02-15T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2020#M156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to successfully hide the action by extracting the share configuration file and commenting out the relevant action and then putting back file in the amp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am confronted with almost similar&amp;nbsp;situation. I have to override the simple workflow's Approve and Reject action, I want them to only appear when the document has some comments in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I now override the&amp;nbsp;&lt;SPAN&gt; simple workflow's Approve and Reject action with bean id&amp;nbsp;document-approve and&amp;nbsp;document-reject resp. so that I can add my custom evaluator that check for the comments ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was thinking of three things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;To somehow override the actions and insert my custom behavior but I don't know how to override these actions.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;To somehow override the current evaluator that are being used by these actions - is this even possible&amp;nbsp;in alfresco ??&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;To disable the OOTB actions and create my custom actions with same bean ids and then add my evaluator.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me out with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hiten Rastogi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:24:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2020#M156</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2017-03-16T12:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2021#M157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You simply have to create a custom evaluator that checks the property's value, something like this (into the share "-context.xml" file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="&lt;STRONG&gt;evaluator.doclib.isEmAnaliseDestinatario&lt;/STRONG&gt;" parent="evaluator.doclib.action.value"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="accessor" value="node.properties.san:statusDocumentoExterno" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="comparator"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="org.alfresco.web.evaluator.StringEqualsComparator"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="value" value="Em Análise Destinatário" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, in the action config, you use it, like (in the share-config-custom.xml file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;action id="destinatario-rejeitar" type="javascript" label="Rejeitar"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; icon="document-reject"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;evaluator&amp;gt;&lt;STRONG&gt;evaluator.doclib.isEmAnaliseDestinatario&lt;/STRONG&gt;&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="function"&amp;gt;onActionSimpleRepoAction&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="action"&amp;gt;destinatario-rejeitar-action&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="successMessage"&amp;gt;Rejeitado&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="failureMessage"&amp;gt;Problema ao executar ação&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:59:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2021#M157</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-03-16T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an action present in another addon</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2022#M158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggested way worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 10:31:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-hide-an-action-present-in-another-addon/m-p/2022#M158</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2017-03-18T10:31:07Z</dc:date>
    </item>
  </channel>
</rss>

