AnsweredAssumed Answered

How to add a display values for my constraint's allowedValues?

Question asked by ddelapasse on Apr 9, 2015
Latest reply on Apr 9, 2015 by ddelapasse
Desperately trying to figure out how to add localization for constraints of type LIST with allowed values.   I researched and found this ticket:  https://issues.alfresco.com/jira/browse/MNT-5383 marked closed, but I can't find a definitive word on the syntax.

I'm trying: 
      <constraint name="aaa:subsystemValues" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>Value_A</value>
               <value>Value_B</value>
            </list>
         </parameter>
      </constraint>


Referenced in:
         <property name="aaa:subsystem">
               <title>Subsystem</title>
               <type>d:text</type>
               <constraints>
                  <constraint ref="aaa:subsystemValues" />
               </constraints>
            </property>

I've tried many deviations, but NONE of them work!

listconstraint.aaa_subsystemValues.Value_A=DLD1
listconstraint.subsystemValues.Value_A=DLD2
aaa_subsystemValues.Value_A=DLD3
prop.aaa_subsystemValues.Value_A=DLD4

Checking the source code I see a getDisplayLabel and the comments say:
* A key is constructed as follows:
     * <pre>
     *   "listconstraint." + constraintName + "." + constraintAllowableValue.
     *   e.g. listconstraint.test_listConstraintOne.VALUE_ONE.

Outcomes