09-17-2008 01:06 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom Model</description>
<author>Stephen M. Wick</author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<types>
<type name="cm:product">
<title>Product</title>
<parent>cm:content</parent>
<associations>
<association name="cm:crops">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:crop</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="cm:pests">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:pest</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
<type name="cm:crop">
<title>Crop</title>
<parent>cm:content</parent>
<associations>
<association name="cm:products">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:product</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="cm:pests">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:pest</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
<type name="cm:pest">
<title>Pest</title>
<parent>cm:content</parent>
<associations>
<association name="cm:products">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:product</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="cm:crops">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:crop</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom Model</description>
<author>Stephen M. Wick</author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<types>
<type name="cm:product">
<title>Product</title>
<parent>cm:content</parent>
<associations>
<association name="cm:crops">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:crop</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="cm:pests">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:pest</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
<type name="cm:crop">
<title>Crop</title>
<parent>cm:content</parent>
</type>
<type name="cm:pest">
<title>Pest</title>
<parent>cm:content</parent>
</type>
</types>
</model>
12-21-2009 02:49 PM
02-20-2012 12:09 PM
10-05-2017 03:08 AM
Hi everyone,
I created a control form to handle bidirectional association.
Just email me to get my code.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.