 
					
				
		
10-15-2017 03:30 AM
I need to know what are data types are allowed to create properties in content model, I have added like this below type as property type is list, it does not accepted and thrown error. If i give type as text, its working fine. Please anyone can tell me, what are accepted data types to use in content model xml file.
<properties>
<property name="my:dateOfApplication">
 <type>d:list</type>
 <mandatory>false</mandatory>
 </property>
</properties>
thank you.
10-16-2017 12:37 AM
Hi,
There is no datatype like d:list. If you want to use predefined list of values as your property value, then you can use in the following manner
<properties>
<property name="scwf:reviseOutcome"> 
   <type>d:text</type>    
     <default>Abort</default>  
       <constraints> 
           <constraint type="LIST">     
          <parameter name="allowedValues">   
               <list>     
                <value>Re-submit</value>     
                <value>Abort</value>   
               </list>          
         </parameter>     
     </constraint>
   </constraints>   
</property> 
 </properties>              If you have any further query then please let me know.
Thanks.
Kalpesh
10-16-2017 06:11 AM
Hi,
This page in the documentation contains all the details on the values to use in the content model:
Creating a new property for custom types and aspects | Alfresco Documentation
Hope it helps!
 
					
				
				
			
		
Explore our Alfresco products with the links below. Use labels to filter content by product module.