09-23-2011 10:54 AM
 
					
				
		
10-04-2011 10:30 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="gc:gcDatalist" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <!– Optional meta-data about the model –>   
   <description>Custom Bhukka datalist</description>
   <author>Eugene vRvOudtshoorn</author>
   <version>1.0</version>
   <!– Imports are required to allow references to definitions in other models –>   
   <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"/>
     <!– Import Alfresco Data List Model Definitions –>
      <import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
   </imports>
   <!– Introduction of new namespaces defined by this model –>   
   <namespaces>
       <namespace uri="gc.customlists.com" prefix="gc"/>
   </namespaces>
   
  
   <!–      T Y P E   D E F I N I T I O N S      –>   
   <types>
     <!–   Data list defintions For this model go here –>
      <type name="gc:generalCor">
       <title>General correspondence</title>
       <description>General correspondence</description>
       <parent>dl:dataListItem</parent>
       <properties>
         <property name="gc:gcID">
            <title>GC number</title>
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
         <property name="gc:gcIDclient">
            <title>Client ref number</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="gc:gcTitle">
            <title>Title</title>
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
         <property name="gc:gcComments">
            <title>Comments</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="gc:gcRefCor">
            <title>Ref correspondence</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
      </properties>      
       <associations>
         <association name="gc:gcAttachments">
            <title>Attachements</title>
            <source>
              <mandatory>false</mandatory>
              <many>true</many>
            </source>
            <target>
              <class>cm:content</class>
              <mandatory>false</mandatory>
              <many>true</many>
            </target>
         </association>
       </associations>
     </type>
   </types>     
 </model>
<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"/>
     <!– Import Alfresco Data List Model Definitions –>
      <import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
   </imports>
<namespace uri="gc.customlists.com" prefix="gc"/> <types>
     <!–   Data list defintions For this model go here –>
      <type name="gc:generalCor">
       <title>General correspondence</title>
       <description>General correspondence</description>
       <parent>dl:dataListItem</parent>
       <properties>
         <property name="gc:gcID">
            <title>GC number</title>
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
         <property name="gc:gcIDclient">
            <title>Client ref number</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="gc:gcTitle">
            <title>Title</title>
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
         <property name="gc:gcComments">
            <title>Comments</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="gc:gcRefCor">
            <title>Ref correspondence</title>
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
      </properties>      
       <associations>
         <association name="gc:gcAttachments">
            <title>Attachements</title>
            <source>
              <mandatory>false</mandatory>
              <many>true</many>
            </source>
            <target>
              <class>cm:content</class>
              <mandatory>false</mandatory>
              <many>true</many>
            </target>
         </association>
       </associations>
     </type>
   </types>     
<!– General correspondence –>
   <config evaluator="model-type" condition="gc:generalCor">
      <forms>
         <!– Create item form –>
         <form>
            <field-visibility>
               <!– for the form creation we are showing everything except approved date –>
                     <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" /> 
            </field-visibility>
            <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
            <appearance>
               <field id="gc:gcIDclient">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>
               
               <field id="gc:gcComments">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>                   
               <field id="gc:gcAttachments">
                  <control>
                   <control-param name="startLocation">{doclib}</control-param>
                  </control>
                   </field>
            </appearance>
         </form>
               <!– Data Grid view –>
               <form id="datagrid">
                     <field-visibility>                     
               <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" />    
                     </field-visibility>
               </form>
         </forms>
      </config>
   
   <!– Edit view –>
   <config evaluator="node-type" condition="gc:generalCor">
      <forms>
         <!– Edit marketing item form –>
         <form>
            <field-visibility>
                        <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" /> 
            </field-visibility>
            <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
            <appearance>
               <field id="gc:gcIDclient">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>
               
               <field id="gc:gcComments">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>                   
               <field id="gc:gcAttachments">
                  <control>
                   <control-param name="startLocation">{doclib}</control-param>
                  </control>
                   </field>
            </appearance>
      
         </form>
      </forms>
   </config>
<!– Create item form –>
         <form>
            <field-visibility>
               <!– for the form creation we are showing everything except approved date –>
                     <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" /> 
            </field-visibility>
            <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
            <appearance>
               <field id="gc:gcIDclient">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>
               
               <field id="gc:gcComments">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>                   
               <field id="gc:gcAttachments">
                  <control>
                   <control-param name="startLocation">{doclib}</control-param>
                  </control>
                   </field>
            </appearance>
         </form>
<!– Data Grid view –>
               <form id="datagrid">
                     <field-visibility>                     
               <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" />    
                     </field-visibility>
               </form>
<!– Edit view –>
   <config evaluator="node-type" condition="gc:generalCor">
      <forms>
         <!– Edit marketing item form –>
         <form>
            <field-visibility>
                        <show id="gc:gcID" />            
               <show id="gc:gcIDclient" />                              
               <show id="gc:gcTitle" />               
               <show id="gc:gcComments" />                      
               <show id="gc:gcAttachments" /> 
            </field-visibility>
            <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
            <appearance>
               <field id="gc:gcIDclient">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>
               
               <field id="gc:gcComments">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" /> 
               </field>                   
               <field id="gc:gcAttachments">
                  <control>
                   <control-param name="startLocation">{doclib}</control-param>
                  </control>
                   </field>
            </appearance>
      
         </form>
      </forms>
   </config>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <!– Registration of new models –>  
<bean id="extension.gc.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/gcDatalistModel.xml</value>
            </list>
        </property>
    </bean>
<bean id="extension.mtg.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/mtgDatalistModel.xml</value>
            </list>
        </property>
    </bean>
</beans>
<bean id="extension.gc.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/gcDatalistModel.xml</value>
            </list>
        </property>
    </bean> 
					
				
		
12-14-2016 06:22 AM
can u help me pls...
while clicking attachments select button in adding new item in custom data list, I want to add files from windows explorer in client side instead of from server.
abve image is adding attachments from server i dont want that, i want to add files from windows explorer in client pc.
12-22-2011 04:33 PM
 
					
				
		
12-29-2011 12:27 PM
02-07-2012 11:11 AM
03-18-2012 09:58 PM
 
					
				
		
03-19-2012 05:25 AM
 
					
				
		
04-25-2012 05:42 PM
05-01-2012 01:43 PM
 
					
				
				
			
		
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.