AnsweredAssumed Answered

Adding Values to PickList dinamically

Question asked by jlabuelo on Feb 10, 2009
Good Morning all

I have a question about the values an aspect can have. What I pretend to do is creating an aspect of type list so what I do before the  type/aspect definition is adding this code in the CustomModel.xml file


<constraint name="incolsa:local" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value></value>
                    <value>Archivo</value>
                    <value>Oficina</value>
                </list>
            </parameter>
</constraint>

And then I include this list as a value for an aspect

<aspect name="incolsa:Almacen">
         <title>Localización de documentos en almacén</title>
         <properties>
            <property name="incolsa:localizacion">
               <title>Localización do documento</title>
               <type>d:text</type>
               <constraints>
                  <constraint ref="incolsa:local" />
               </constraints>
            </property>
            <property name="incolsa:armario">
               <title>Armario</title>
               <type>d:text</type>
            </property>
            <property name="incolsa:carpeta">
               <title>Carpeta</title>
               <type>d:text</type>
            </property>
         </properties>
      </aspect>

My question is: Is there any way of maintaining this list dinamically in the Alfresco application, so any time I need to add a new value or remove an existing one I dont have to edit the CustomModel.xml file??

Thanks a lot in advance

Outcomes