<?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 adf-document-list dynamic columns in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13961#M6161</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;I need to build a document-list with custom columns from a selected custom type.&lt;/P&gt;&lt;P&gt;workflow: select the custom type, search documents by property, list documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;until the search documents i'm almost ok, I can present de result in document list but i &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;would&lt;/SPAN&gt;&lt;/SPAN&gt; the custom columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that for custom columns i need to write the html file but it's too static. I need to define the columns on runtime. I see the &lt;A class="link-titled" href="https://alfresco.github.io/adf-component-catalog/components/DataTableComponent.html#customizing-columns" title="https://alfresco.github.io/adf-component-catalog/components/DataTableComponent.html#customizing-columns" rel="nofollow noopener noreferrer"&gt;ADF Component Catalog &lt;/A&gt;DataTable component, but i don't understand how to define the columns in the document list component &lt;A class="link-titled" href="https://alfresco.github.io/adf-component-catalog/components/DocumentListComponent.html" title="https://alfresco.github.io/adf-component-catalog/components/DocumentListComponent.html" rel="nofollow noopener noreferrer"&gt;ADF Component Catalog&lt;/A&gt;&amp;nbsp; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2018 14:13:29 GMT</pubDate>
    <dc:creator>pajumbo</dc:creator>
    <dc:date>2018-10-03T14:13:29Z</dc:date>
    <item>
      <title>adf-document-list dynamic columns</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13961#M6161</link>
      <description>Hello,I need to build a document-list with custom columns from a selected custom type.workflow: select the custom type, search documents by property, list documents.until the search documents i'm almost ok, I can present de result in document list but i would the custom columnsI see that for custom</description>
      <pubDate>Wed, 03 Oct 2018 14:13:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13961#M6161</guid>
      <dc:creator>pajumbo</dc:creator>
      <dc:date>2018-10-03T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: adf-document-list dynamic columns</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13962#M6162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Document List is based on Data Table component, so all documentation for Data Table applies. You can check docs on Data Adapters that allow to set both data and schema (columns) at runtime. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 07:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13962#M6162</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-10-05T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: adf-document-list dynamic columns</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13963#M6163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the Data Table component from the component catalog &lt;A href="https://alfresco.github.io/adf-component-catalog/components/DataTableComponent.html" rel="nofollow noopener noreferrer"&gt;DataTable component&lt;/A&gt;. In the given screenshot, the schema can be defined at runtime. So, on HTML page you need not require to specify the columns.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;IMG alt="" class="image-1 jive-image" height="423" src="https://connect.hyland.com/legacyfs/online/alfresco/23249_Datatable_component.png" width="753" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 14:12:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13963#M6163</guid>
      <dc:creator>shivanir</dc:creator>
      <dc:date>2018-10-05T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: adf-document-list dynamic columns</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13964#M6164</link>
      <description>&lt;P&gt;I've done it like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;adf-document-list
    [includeFields]="['properties']"&amp;gt;
    &amp;lt;data-columns&amp;gt;
        &amp;lt;data-column key="$thumbnail" type="image"&amp;gt;&amp;lt;/data-column&amp;gt;
        &amp;lt;data-column
            title="Name" 
            key="name"&amp;gt;
        &amp;lt;/data-column&amp;gt;
        &amp;lt;data-column
            title="CP1" 
            key="properties.cp:customProperty1"&amp;gt;
        &amp;lt;/data-column&amp;gt;
        &amp;lt;data-column
            title="CP2" 
            key="properties.cp:customProperty2"&amp;gt;
        &amp;lt;/data-column&amp;gt;
    &amp;lt;/data-columns&amp;gt;
&amp;lt;/adf-document-list&amp;gt;&lt;/PRE&gt;&lt;P&gt;So set the &lt;FONT face="courier new,courier"&gt;includeFields&lt;/FONT&gt; property to include the properties and then use this format to specify the key: &lt;FONT face="courier new,courier"&gt;properties.cp:customProperty2&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:42:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-document-list-dynamic-columns/m-p/13964#M6164</guid>
      <dc:creator>dylanvdbrink</dc:creator>
      <dc:date>2019-09-24T13:42:44Z</dc:date>
    </item>
  </channel>
</rss>

