cancel
Showing results for 
Search instead for 
Did you mean: 

Show association in both documents

gcoleman
Champ in-the-making
Champ in-the-making
I defined an association between two documents. I want to see this association in the web-client for both documents.

To clarify;
   I define an association called usedBy.
   I edit the attributes of document1 in the web client to show that document1 is usedBy document2.
   If I view the attributes of document2 I want to see that document2 uses document1.

Is this possible?
It seems I need something like
<show-association>
but that works in reverse.

from aimsModel.xml:

    
<types>
      <type name="idb:aims">
         <title>AIMS Image</title>
         <parent>cm:content</parent>
            <properties>
                <property name="idb:depth">
                    <type>d:text</type>
                </property>
      </properties>

      <associations>

         <association name="idb:usedby">
            <source>
               <mandatory>false</mandatory>
               <many>false</many>
            </source>
                      <target>
                        <class>idb:aims</class>
                        <mandatory>false</mandatory>
                        <many>true</many>
                     </target>
               </association> 

      </associations>
         

   </type>

   </types>

from web-client-custom-config.xml:


    <config evaluator="node-type" condition="idb:aims">
        <property-sheet>
            <show-property name="idb:depth" />
       <show-association name="idb:usedby"/>
     </property-sheet>
    </config>

1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Unfortunately not, as you have found, the association is only shown from the source node.