AnsweredAssumed Answered

How to create inner object in alfresco custom modelling? Like Car has Engine

Question asked by mageshvg on Jun 22, 2017
Latest reply on Jun 23, 2017 by afaust

<types>        
        <type name="VG:EngineType">
            <title>Engine</title>
            <description>Car Engine Model</description>
            <parent>cm:content</parent>
            <properties>
                <property name="VG:ModelNo">
                    <title>Model Number</title>
                    <description>Model No of Engine</description>
                    <type>d:text</type>
                    <mandatory>true</mandatory>                  
                </property>

             <property name="VG:ModelName">
                    <title>Model Name</title>
                    <description>Model Name of Engine</description>
                    <type>d:text</type>
                    <mandatory>true</mandatory>                  
                </property>                            
            </properties>          
        </type>

      <type name="VG:Car">
            <title>Car</title>
            <description>Car Model</description>
            <parent>cm:content</parent>
            <properties>
                <property name="VG:Engine">
                    <title>Engine</title>
                    <description>Type of Engine Car Having</description>
                    <type>VG:EngineType</type> // I know Here Data type Need to specify. But How to Achieve the same?
                    <mandatory>true</mandatory>                  
                </property>                        
            </properties>        
        </type>       
    </types>

 

In My case I need to have a type which has list of another type

EX:

Manager has List of subordinates...

 

Thanks For your Valuable Comments....

Outcomes