<?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 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/11574#M5114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white;"&gt;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.&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;According to documents&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;A href="https://alfresco.github.io/adf-component-catalog/components/ContentActionComponent.html" rel="nofollow noopener noreferrer"&gt;https://alfresco.github.io/adf-component-catalog/components/ContentActionComponent.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;A href="https://alfresco.github.io/adf-component-catalog/injectables/DocumentActionsService.html" rel="nofollow noopener noreferrer"&gt;https://alfresco.github.io/adf-component-catalog/injectables/DocumentActionsService.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;, it is possible to register a new customized action to replace default ‘download’ action handler. But it does not work for us. Following is excerpt of our code, that is very similar to samples provided. Neither &lt;SPAN style="color: #7a7a43;"&gt;myDocumentActionHandler&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;() nor &lt;/SPAN&gt;&lt;SPAN style="color: #7a7a43;"&gt;customDownloadBehavior&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;()&lt;/SPAN&gt; is called when the actions are selected from the three dot action menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;============= html ===========&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;adf-document-list&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;#documentList&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; [multiselect]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;true&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[allowDropFiles]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"false"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[navigationMode]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"'dblclick'"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[contextMenuActions]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"true"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[contentActions]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"true"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[selectionMode]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"'multiple'"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;currentFolderId=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;{{&lt;/STRONG&gt;&lt;STRONG style="color: #660e7a; background: #EFEFEF; font-size: 9.0pt;"&gt;parentFolder&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;.&lt;/STRONG&gt;&lt;STRONG style="color: #660e7a; background: #EFEFEF; font-size: 9.0pt;"&gt;folderId&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;}}&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;(preview)=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"&lt;/STRONG&gt;&lt;STRONG style="color: #7a7a43; background: #EFEFEF; font-size: 9.0pt;"&gt;showPreview&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;(&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #660e7a; background: #EFEFEF; font-size: 9.0pt;"&gt;$event&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;)"&lt;BR /&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;[sorting]=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"['name', 'ASC']"&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &lt;SPAN style="background: #EFEFEF;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;content-actions&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt;"&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;content-action&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;target=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"document"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;title=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"APP.ACTIONS.DOWNLOAD"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;handler=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"download" &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #EFEFEF;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;content-action&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #EFEFEF;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;content-action&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;target=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"document"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;title=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"My Handler"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="color: blue; background: #EFEFEF; font-size: 9.0pt;"&gt;handler=&lt;/STRONG&gt;&lt;STRONG style="color: green; background: #EFEFEF; font-size: 9.0pt;"&gt;"my-handler" &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #EFEFEF;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;content-action&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #EFEFEF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!- - other actions - - &amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;&amp;nbsp; &amp;lt;/content-actions&amp;gt;&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!- - other column defs - -&amp;gt;&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: #EFEFEF; font-size: 9.0pt;"&gt;&amp;lt;/adf-document-list&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;============= controller ===========&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;// other imports …&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;import &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;{ DocumentListComponent, DocumentActionsService } &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;from &lt;/STRONG&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'@alfresco/adf-content-services'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; color: olive;"&gt;@Component&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;({&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;selector&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'app-doc-list'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,&lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;templateUrl&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'./doc-list.component.html'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,&lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;styleUrls&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;: [&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'./doc-list.component.scss'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;]&lt;BR /&gt; })&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;export class &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;DocListComponent &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;extends &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;BrowseResult {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in; background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;// other properteis …&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;originalDownloadHandler&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;constructor&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(documentActions: DocumentActionsService,&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; // &lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;…&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;super&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(peopleApi, rfsDocumentService);&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; documentActions.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;setHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'my-handler'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;myDocumentActionHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;bind&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;originalDownloadHandler &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;= documentActions.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;getHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'download'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; documentActions.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;setHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'download'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;customDownloadBehavior&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;bind&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; }&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;myDocumentActionHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(obj: &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;any&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #660e7a; font-size: 9.0pt;"&gt;console&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'my custom action handler is never called'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;);&lt;BR /&gt; &amp;nbsp; }&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;customDownloadBehavior&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(obj: &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;any&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #660e7a; font-size: 9.0pt;"&gt;console&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #7a7a43;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9.0pt;"&gt;'my custom download behavior is never called'&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;STRONG style="color: #660e7a; font-size: 9.0pt;"&gt;originalDownloadHandler&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;(obj);&lt;BR /&gt; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 9.0pt;"&gt;// other functions …&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2018 19:09:26 GMT</pubDate>
    <dc:creator>jameswu1818</dc:creator>
    <dc:date>2018-09-06T19:09:26Z</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>

