cancel
Showing results for 
Search instead for 
Did you mean: 

nested types

scot84
Champ in-the-making
Champ in-the-making

<type name="ics:tclient">
   <title>client</title>
   <parent>cm:content</parent>
   <properties>
      <property name="ics:name">
         <type>d:text</type>
      </property>
      <property name="ics:surname">
         <type>d:text</type>
         <mandatory>true</mandatory>
      </property>
   </properties>
</type>


<type name="ics:invoice">
   <title>invoice</title>
   <parent>cm:content</parent>
   <properties>
      <property name="ics:number">
         <type>d:text</type>
         <mandatory>true</mandatory>
      </property>
      <property name="ics:data">
         <type>d:date</type>
         <mandatory>true</mandatory>
      </property>
      <property name="ics:client">
         <type>ics:tclient</type>
      </property>
   </properties>
</type>

is it possible to have this type of datamodel, whe I try to load I have this error
02150000 Property type 'ics:tclientof property 'ics:client' is not found
1 REPLY 1

mrogers
Star Contributor
Star Contributor
you probably want an association to a client,  not a property of type client.