AnsweredAssumed Answered

Association Datalist - Document

Question asked by a.fregoli on Oct 31, 2013
Latest reply on Nov 6, 2013 by a.fregoli
Hi guys,

In a project in Alfresco / Share, I would like to insert into a document an association of one or more elements from a datalist, but the result I get does not allow me to select the items of the datalist because I just get the values of the id.

My model is


<type name="bcp:rubrica">
   <title>Rubrica </title>
   <description>Rubrica</description>
   <parent>dl:dataListItem</parent>
   <properties>
      <property name="bcp:nominativoRubrica">
         <title>Nominativo</title>
         <type>d:text</type>                     
      </property>
      
      <property name="bcp:telefonoRubrica">
         <title>Telefono</title>
         <type>d:text</type>                     
      </property>
      
      <property name="bcp:cellulareRubrica">
         <title>Cellulare</title>
         <type>d:text</type>                     
      </property>
      
      <property name="bcp:emailRubrica">
         <title>email</title>
         <type>d:text</type>                     
      </property>
   </properties>
</type>

<aspects>
   <aspect name="bcp:protocollatiAspect">
      <title>Protocollo </title>
      <properties>
         <property name="bcp:numeroProtocollo">
            <title>Numero Protocollo</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
      </properties>
      
      <associations>
         <association name="bcp:mittenteDest">
            <source>
               <mandatory>false</mandatory>
               <many>true</many>
            </source>
            <target>
               <class>bcp:rubrica</class>
               <mandatory>false</mandatory>
               <many>true</many>
            </target>
         </association>
      </associations>
   </aspect>      
</aspects>   


In share I modified the configuration file of the form by entering the control of the association.


<field id=" bcp:mittenteDest " label="Mittente / Destinatario">
   <control template="/org/alfresco/components/form/controls/association.ftl" >
   </control>
</field>


Solutions ?

Outcomes