AnsweredAssumed Answered

Obtain a List with a constraint list allowed values

Question asked by falcon on Jul 9, 2009
Latest reply on Aug 16, 2016 by gawadesk
Hi,
I have defined a custom type metadata, like this:

<constraints>
   <constraint name="my:constraintList" type="LIST">
      <parameter name="allowedValues">
         <list>
            <value>OPTION 1</value>
            <value>OPTION 2</value>
            <value>OPTION 3</value>
         </list>
      </parameter>
      <parameter name="caseSensitive">
         <value>false</value>
      </parameter>
   </constraint>
</constraints>
<types>
<type name="my:typeTest">
   <title>TEST TYPE</title>
   <parent>cm:content</parent>
      <properties>
      
         <property name="my:propertyTest">
            <title>TEST PROPERTY</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
            <constraints>
              <constraint ref="my:constraintList" />
           </constraints>
         </property>
                  </properties>
</type>
</types>

How can I have a List in Java or Javascritp of the allowed values of my constraint to send it by a webscript?

Thanks for help :)

Outcomes