<?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: Populating selectmany.ftl from a data list or database in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269970#M223100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The control used for a given field is freemarker, and you can provide your own freemarker to render a control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also provide your own client-side JavaScript that knows how to find and populate that control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So one approach for doing what you are trying to do is to specify a custom control that includes a client-side JavaScript component that issues an AJAX call against a web service somewhere (could be an Alfresco web script running on either the Share tier or the Repository tier) that retrieves the values and populates the dropdown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know of an example of this off the top of my head and I'm sorry I don't have time to provide more details at the moment, but know that it is possible and hopefully this extremely high-level description will give you something to go on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jun 2012 00:23:58 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2012-06-02T00:23:58Z</dc:date>
    <item>
      <title>Populating selectmany.ftl from a data list or database</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269969#M223099</link>
      <description>I would like to populate a selectmany control with data from either an Alfresco data list or from a database.&amp;nbsp; Here is an XML stanza that currently uses a hard coded list. . &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;field id="lx&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rimary_company" label-id="prop.lx_primary_company"&amp;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;lt;control template=</description>
      <pubDate>Wed, 09 May 2012 17:37:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269969#M223099</guid>
      <dc:creator>csamgreene</dc:creator>
      <dc:date>2012-05-09T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Populating selectmany.ftl from a data list or database</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269970#M223100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The control used for a given field is freemarker, and you can provide your own freemarker to render a control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also provide your own client-side JavaScript that knows how to find and populate that control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So one approach for doing what you are trying to do is to specify a custom control that includes a client-side JavaScript component that issues an AJAX call against a web service somewhere (could be an Alfresco web script running on either the Share tier or the Repository tier) that retrieves the values and populates the dropdown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know of an example of this off the top of my head and I'm sorry I don't have time to provide more details at the moment, but know that it is possible and hopefully this extremely high-level description will give you something to go on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 00:23:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269970#M223100</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-06-02T00:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Populating selectmany.ftl from a data list or database</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269971#M223101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find some of the sample code you need for this in the following reply:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=43659#p130790" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=43659#p130790&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 06:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-selectmany-ftl-from-a-data-list-or-database/m-p/269971#M223101</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-06-05T06:47:42Z</dc:date>
    </item>
  </channel>
</rss>

