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.
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
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!
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.