 
					
				
		
05-14-2012 09:46 AM
05-15-2012 12:19 AM
 
					
				
		
05-15-2012 09:06 AM
…
   <types>
      <type name="sc:carinfo">
         <title>car info</title>
         <parent>cm:content</parent>
         <properties>
            <property name="sc:carinfo1">
               <title>ci_field_1</title>
               <type>d:text</type>
            </property>
            <property name="sc:carinfo2">
               <title>ci_field_2</title>
               <type>d:text</type>
            </property>
         </properties>
         <associations>
            <association name="sc:relatedDocuments">
               <title>rel_doc</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </type>
…
<type name="sc:leasing">
   <title>leasing</title>
   <parent>cm:content</parent>
   <properties> 
      <property name="sc:leasing1">
      <title>l_filed_1</title>
      <type>d:text</type>      
   </property> 
      <property name="sc:leasing2">
      <title>l_filed_2</title>
      <type>d:text</type>      
   </property> 
      <property name="sc:leasing3">
      <title>l_filed_3</title>
      <type>d:text</type>      
   </property> 
…var insp = document.properties["sc:leasing2"];
results = search.luceneSearch(insp);
for (var i = 0; i<results.length; i++){
    document.createAssociation(results[i], "sc:relatedDocuments" );
}
document.save();05-16-2012 03:07 AM
 
					
				
		
05-16-2012 04:31 AM
 
					
				
		
05-16-2012 08:41 AM
var insp = document.properties["sc:leasing2"];
results = search.luceneSearch(insp);
for (var i = 0; i<results.length; i++){
    results[i].createAssociation(document, "sc:relatedDocuments" );
}
document.save(); 
					
				
				
			
		
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.