AnsweredAssumed Answered

Viewing association data from <target> entry

Question asked by rich.weiskopf on Aug 22, 2006
Latest reply on Aug 23, 2006 by gavinc
Using Version 1.4.0 dev, Rev 118

Have the following model defined:

<type name="tst:ObjectD">
  <title>Object D</title>
  <parent>cm:content</parent>
  <associations>
    <child-association name="tst:has">
      <source>
        <mandatory>false</mandatory>
        <many>true</many>
      </source>
      <target>
         <class>tst:ObjectE</class>       
         <mandatory>false</mandatory>
         <many>true</many>
      </target>
      <duplicate>true</duplicate>           
    </child-association>
  </associations>              
</type>

<type name="tst:ObjectE">
  <title>Object E</title> 
  <parent>cm:content</parent>   
</type>

Have the following alfresco-config entry defined:

<config evaluator="node-type" condition="tst:ObjectD">
  <property-sheet>
    <show-property name="name" />
    <show-child-association name="tst:has" />       
   </property-sheet>
</config>
   
<config evaluator="node-type" condition="tst:ObjectE">
  <property-sheet>
    <show-property name="name" />
    <show-child-association name="tst:has" />       
   </property-sheet>
</config>


Created node ObjectD-0  of type ObjectD
Created node ObjectE-0  of type ObjectE and associated it with ObjectD-0

In view details for ObjectD-0, the 'tst:has' association is included
In view details for ObjectE-0, receive a warning message: [component.property.UIChildAssociation] Failed to find child association definition for association 'tst:has'

Would like to be able to see in which associations ObjectE-0 participates.
Is there any way to display the 'tst:has' association when viewing the details of type ObjectE ?

TIA,
Rich

Outcomes