cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to find association definition - SOLVED

cpawinsal
Champ in-the-making
Champ in-the-making
[It was the scModel.xml file where the problem was. Smiley Happy]

Hi,

I'm brand new to Alfresco. I'm following along with the Alfresco Developer Manual to learn it.

Based on the book's instruction, I created some types that should be associated. They show up in a drop down list when I create new content in Alfresco. However, after the content is created and then when I click on the content details, I get an error in Tomcat.

Two of my web-client-config-custom.xml <config> tags contain:

   <!– show related documents association on whitepaper property sheet –>
   <config evaluator="node-type" condition="sc:whitepaper">
      <property-sheet>
         <show-association name="sc:relatedDocuments"/>
      </property-sheet>
   </config>

   <!– show related documents association on doc property sheet –>
   <config evaluator="node-type" condition="sc:doc">
      <property-sheet>
         <show-association name="sc:relatedDocuments"/>
      </property-sheet>
   </config>

The error is:

"WARN… [component.property.UIAssociation] Failed to find association definition for association 'sc:relatedDocuments'"

Can you please show me what I am doing wrong?

Thanks for your help. FYI, the unabridged web-client-config-custom.xml file is below:




<alfresco-config>
   <config>
      <client>
         <!– the login page the client will use –>
         <login-page>/jsp/extension/login.jsp</login-page>
      </client>
   </config>

   <!–  add webable aspect properties to property sheet –>
   <config evaluator="aspect-name" condition="sc:webable">
      <property-sheet>
         <show-property name="sc:published" display-label-id="published" />
         <show-property name="sc:isActive" display-label-id="isActive" read-only="true" />
      </property-sheet>
   </config>

   <!–  add client related aspect properties to property sheet –>
   <config evaluator="aspect-name" condition="sc:clientRelated">
      <property-sheet>
         <show-property name="sc:clientName" display-label-id="client" />
         <show-property name="sc:projectName" display-label-id="project" />
      </property-sheet>
   </config>

   <!– show related documents association on doc property sheet –>
   <config evaluator="node-type" condition="sc:doc">
      <property-sheet>
         <show-association name="sc:relatedDocuments" display-label-id="Related Documents"/>
      </property-sheet>
   </config>

   <!– show campaign on marketingDoc property sheet –>
   <config evaluator="node-type" condition="sc:marketingDoc">
      <property-sheet>
         <show-property name="sc:campaign" display-label-id="campaign" />
      </property-sheet>
   </config>

   <!– show related documents association on whitepaper property sheet –>
   <config evaluator="node-type" condition="sc:whitepaper">
      <property-sheet>
         <show-association name="sc:relatedDocuments" display-label-id="Related Documents"/>
      </property-sheet>
   </config>

   <!–  add someco types to add content list –>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="sc:doc" />
         <type name="sc:whitepaper" />
         <type name="sc:legalDoc" />
         <type name="sc:marketingDoc" />
         <type name="sc:hrDoc" />
         <type name="sc:salesDoc" />
         <type name="sc:opsDoc" />
      </content-types>
   </config>

   <config evaluator="string-compare" condition="Action Wizards">
       <!– The list of aspects to show in the add/remove features action –>
       <!– and the has-aspect condition –>   
      <aspects>
         <aspect name="sc:webable"/>
         <aspect name="sc:clientRelated"/>
      </aspects>

      <!– The list of types shown in the is-subtype condition –>
      <subtypes>
         <type name="sc:doc" />
         <type name="sc:whitepaper" />
         <type name="sc:legalDoc" />
         <type name="sc:marketingDoc" />
         <type name="sc:hrDoc" />
         <type name="sc:salesDoc" />
         <type name="sc:opsDoc" />
      </subtypes>      

      <!– The list of content and/or folder types shown in the specialise-type action –>
      <specialise-types>
         <type name="sc:doc" />
         <type name="sc:whitepaper" />
         <type name="sc:legalDoc" />
         <type name="sc:marketingDoc" />
         <type name="sc:hrDoc" />
         <type name="sc:salesDoc" />
         <type name="sc:opsDoc" />         
      </specialise-types>      
   </config>   
   
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="sc:doc" />
            <type name="sc:whitepaper" />
            <type name="sc:legalDoc" />
            <type name="sc:marketingDoc" />
            <type name="sc:hrDoc" />
            <type name="sc:salesDoc" />
            <type name="sc:opsDoc" />            
         </content-types>
         <custom-properties>
            <meta-data aspect="sc:webable" property="sc:published" display-label-id="published" />
            <meta-data aspect="sc:webable" property="sc:isActive" display-label-id="isActive" />
            <meta-data aspect="sc:clientRelated" property="sc:clientName" display-label-id="client" />
            <meta-data aspect="sc:clientRelated" property="sc:projectName" display-label-id="project" />            
         </custom-properties>
      </advanced-search>
   </config>
   
</alfresco-config>

1 REPLY 1

solo8788
Champ in-the-making
Champ in-the-making
Jeff Potts the author of that book has updated the book to be compatible with 3.2.

http://ecmarchitect.com/archives/2009/12/24/1121