AnsweredAssumed Answered

property default value on dictionary service

Question asked by ioerror on May 25, 2010
How to know default value for a property from dictionary service?

i create a custom document type with property like this:

….
<property name="custom:customflag">
    <title>My Custom Flag</title>
    <type>d:boolean</type>
    <mandatory enforced="true">true</mandatory>
    <default>false</default>
</property>
….

and, when i try to access /alfresco/service/api/classes/custom_doctype/properties there's only defaultValues, with empty value like this:

[
   {
      "name" : "custom:customflag",
      "title" : "My Custom Flag",
      "description" : "",
      "defaultValues" : "",
      "dataType" : "d:boolean",
      "multiValued" : false,
      "mandatory" : true,
      "enforced" : true,
      "protected" : false,
      "indexed" : true,
      "indexedAtomically" : true,
      "constraints" :
      [      ],
      "url" : "\/api\/property\/custom_customflag"
   }
….

Outcomes