<?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 add data to option of selectmany.ftl in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-data-to-option-of-selectmany-ftl/m-p/266635#M219765</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;I have a field in the form referencing the selectmany.ftl template, and it allows me to add the option to the list by hardcoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know how to add data to the field by code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And also, how can I use jquery for the field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 23:35:24 GMT</pubDate>
    <dc:creator>zlu</dc:creator>
    <dc:date>2012-05-02T23:35:24Z</dc:date>
    <item>
      <title>add data to option of selectmany.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-data-to-option-of-selectmany-ftl/m-p/266635#M219765</link>
      <description>Hi, I have a field in the form referencing the selectmany.ftl template, and it allows me to add the option to the list by hardcoding.I want to know how to add data to the field by code?And also, how can I use jquery for the field?Thanks,Daniel</description>
      <pubDate>Wed, 02 May 2012 23:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-data-to-option-of-selectmany-ftl/m-p/266635#M219765</guid>
      <dc:creator>zlu</dc:creator>
      <dc:date>2012-05-02T23:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: add data to option of selectmany.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-data-to-option-of-selectmany-ftl/m-p/266636#M219766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing you could do is create your own version of the selectmany.ftl template. Copy $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/form/controls/selectmany.ftl into $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/form/controls/selectmanywithcode.ftl and then modify as you see fit. You'll have to use share-config-custom.xml to tell Alfresco to use your custom control for the specific fields that make sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you may find is that the options you want to add using code need to get some data from the repository that hasn't been handed to the control in a variable. When that happens you can drop a little client-side JavaScript into your template and make AJAX calls to the repository tier web scripts via the Share proxy. There are out-of-the-box Alfresco utilities on the client-side that wrap YUI to make this easy once you know how they work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I don't have time to provide further detail, but maybe that gives you some ideas.&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:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-data-to-option-of-selectmany-ftl/m-p/266636#M219766</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-06-02T00:15:01Z</dc:date>
    </item>
  </channel>
</rss>

