<?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: Updating field value based on constraint selection in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259264#M212394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no Alfresco specific form listener concept and no examples that I know off that show how to do this in a structured form. The event mechanism used by Alfresco is provided by YUI and described in &lt;/SPAN&gt;&lt;A href="http://developer.yahoo.com/yui/event/" rel="nofollow noopener noreferrer"&gt;their documentation&lt;/A&gt;&lt;SPAN&gt;. Depending on the type of control used (i.e. association, text, number, date), the events issues may differ as basically only the low-level, control-internal events are available for additional scripting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 08:23:05 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2012-09-12T08:23:05Z</dc:date>
    <item>
      <title>Updating field value based on constraint selection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259261#M212391</link>
      <description>I have a property on my form that has a constraint built from a Java class. I would like to update the value of a second field on the form with a value when the user selects one of the optionsIE: my field "CountryCode" has 3 options: "UK", "USA", "GER"When the user selects one of the options, there</description>
      <pubDate>Tue, 11 Sep 2012 14:58:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259261#M212391</guid>
      <dc:creator>mikepoole</dc:creator>
      <dc:date>2012-09-11T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field value based on constraint selection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259262#M212392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you actually need to separate code from label? Why not use a list of value constraint that maps codes to their respective label, having the select field show the label instead of the code to the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, you would need a JavaScript listener on your code field that updates your label HTML (if changes need to be immediately reflected in the form without a reload).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 23:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259262#M212392</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-11T23:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field value based on constraint selection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259263#M212393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think my example was a little simplistic. I will have several values to retrieve based on the selection the user makes (so selecting the country code will lead me to get name PLUS several other attributes of the country)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of the stuff I can find about JavaScript listeners within Alfresco relate to Activit and workflow processes. Are there any good tutorials for adding JS listeners within Alfresco itself (as I think my users will not want a form reload)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:06:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259263#M212393</guid>
      <dc:creator>mikepoole</dc:creator>
      <dc:date>2012-09-12T08:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field value based on constraint selection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259264#M212394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no Alfresco specific form listener concept and no examples that I know off that show how to do this in a structured form. The event mechanism used by Alfresco is provided by YUI and described in &lt;/SPAN&gt;&lt;A href="http://developer.yahoo.com/yui/event/" rel="nofollow noopener noreferrer"&gt;their documentation&lt;/A&gt;&lt;SPAN&gt;. Depending on the type of control used (i.e. association, text, number, date), the events issues may differ as basically only the low-level, control-internal events are available for additional scripting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-field-value-based-on-constraint-selection/m-p/259264#M212394</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-12T08:23:05Z</dc:date>
    </item>
  </channel>
</rss>

