AnsweredAssumed Answered

URGENT show-child-association attribute

Question asked by lmoulin on Jan 23, 2007
Hello,
I created two types of document.
My first type is:
<type name="my:erd_horodatage">
   <title>Horodatage</title>
   <parent>cm:content</parent>
   <properties>
   <property name="my:dateAjout">
      <type>d:datetime</type>
   </property>
   <property name="my:details">
      <type>d:text</type>
   </property>
   </properties>
</type>

My second type is:
<type name="my:erd">
   <title>XXXX</title>
   <parent>cm:content</parent>
   <properties>
   <property name="my:numeroFacture">
      <type>d:text</type>
   </property>
   <property name="my:nomClient">
      <type>d:text</type>
   </property>
   </properties>
   <associations>
   <child-association name="my:horodatages">
      <target>
        <class>my:erd_horodatage</class>
        <mandatory>false</mandatory>
        <many>true</many>
      </target>
   </child-association>        
   </associations>
</type>

I want to display the attribute 'dateAjout' and 'details' of each child association in a document of 'erd' type.
In the file 'web-client-config-custom.xml', he write the followings lines:
<config evaluator="node-type" condition="my:erd">
  <property-sheet>           
    <show-property name="my:numeroFacture" />
    <show-property name="my:nomClient" />
    <show-child-association name="my:horodatages" />
  </property-sheet>
</config>

In the details window, I can view the following values:
- numeroFacture
- nomClient
- the path of each horodatages documents.

How can I make to display the values of custo attribute of each horodatage documents instead of the path?

Tanks a lot,
Regards,
Luc

Outcomes