<?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: DocumentListComponent action handler customization not working in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11575#M5115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take full control over the action execution using "(execute)" event. In that case you won't need hacking services:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;content-action&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;target&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;all&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;title&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;Custom actions&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;(execute)&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;runCustomAction($event)&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;content-action&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&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;P&gt;And in the controller class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;runCustomAction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2018 08:39:55 GMT</pubDate>
    <dc:creator>dvuika</dc:creator>
    <dc:date>2018-09-07T08:39:55Z</dc:date>
    <item>
      <title>DocumentListComponent action handler customization not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11574#M5114</link>
      <description>Someone please help us. In DocumentListComponent, we want to run our customized code for download action. so that we can run our code before calling the default ‘download’ handler; or not calling the default handler at all.&amp;nbsp;According to documentshttps://alfresco.github.io/adf-component-catalog/compo</description>
      <pubDate>Thu, 06 Sep 2018 19:09:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11574#M5114</guid>
      <dc:creator>jameswu1818</dc:creator>
      <dc:date>2018-09-06T19:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: DocumentListComponent action handler customization not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11575#M5115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take full control over the action execution using "(execute)" event. In that case you won't need hacking services:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;content-action&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;target&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;all&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;title&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;Custom actions&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="attr-name token"&gt;(execute)&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;runCustomAction($event)&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;content-action&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&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;P&gt;And in the controller class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;runCustomAction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 08:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11575#M5115</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-07T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: DocumentListComponent action handler customization not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11576#M5116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer. But why handler does not work though. Since it is documented, there must be a reason to use it. In our case, we want to reuse the default download code.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7a7a43; border: 0px; font-size: 9pt;"&gt;customDownloadBehavior&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;(obj:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; border: 0px; font-weight: bold; font-size: 9pt;"&gt;any&lt;/STRONG&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #000000;"&gt;) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;&lt;EM&gt;if (do_something_in_our_biz_logic(obj)) {&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; border: 0px; font-weight: bold; font-size: 9pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;.&lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; border: 0px; font-weight: bold; font-size: 9pt;"&gt;originalDownloadHandler&lt;/STRONG&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;(obj);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-size: 9pt;"&gt;&lt;BR /&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:14:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11576#M5116</guid>
      <dc:creator>jameswu1818</dc:creator>
      <dc:date>2018-09-07T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: DocumentListComponent action handler customization not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11577#M5117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe related to "this" context and how you invoke the old one. Anyway, you can check the source code: &lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/content-services/document-list/services/document-actions.service.ts#L94" title="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/content-services/document-list/services/document-actions.service.ts#L94" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/document-actions.service.ts at development · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt; The only thing the "download" handler does is calling this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.nodeActionsService.downloadNode(obj);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make that call from your handlers as well, or step thought the code in the debugger to see what's going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:22:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11577#M5117</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-07T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: DocumentListComponent action handler customization not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11578#M5118</link>
      <description>&lt;P&gt;Same issue here, I followed the documentation and my custom handler "delete" is not calling my custom behaviour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then used the "execute" event, but I needed to rewrite the&amp;nbsp;&lt;STRONG&gt;DocumentActionsService#delete&lt;/STRONG&gt; method myself.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 17:14:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/documentlistcomponent-action-handler-customization-not-working/m-p/11578#M5118</guid>
      <dc:creator>SébastienVallet</dc:creator>
      <dc:date>2021-01-30T17:14:57Z</dc:date>
    </item>
  </channel>
</rss>

