09-18-2014 02:14 PM
09-19-2014 08:04 AM
09-19-2014 03:43 PM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="cl:clDatalist" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom datalist</description>
<author>MOI</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="cl.customlists.com" prefix="cl"/>
</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="cl:clCallDatalist">
<title>Gestion des appels</title>
<description>Appels recus et appels emis</description>
<parent>dl:dataListItem</parent>
<properties>
<property name="cl:clTitle">
<title>Libelle</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="cl:clClient">
<title>Client</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="cl:clNumber">
<title>Numero telephone</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="cl:clSubject">
<title>Sujet</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="cl:clDate">
<title>Date</title>
<type>d:date</type>
<mandatory>false</mandatory>
</property>
<property name="cl:clCallType">
<title>Type appel</title>
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint name="cl:clListCallType" type="LIST">
<parameter name="allowedValues">
<list>
<value>Non renseigne</value>
<value>Emis</value>
<value>Recu</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</properties>
</type>
</types>
</model>
<!– CUSTOM DATALIST : CALL –>
<config evaluator="model-type" condition="cl:clCallDatalist">
<forms>
<!– Create item form –>
<form>
<field-visibility>
<!– for the form creation we are showing everything except approved date –>
<show id="cl:clTitle" />
<show id="cl:clClient" />
<show id="cl:clNumber" />
<show id="cl:clSujet" />
<show id="cl:clDate" />
<show id="cl:clCallType" />
</field-visibility>
<create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
<appearance>
<field id="cl:clTitle">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clClient">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clNumber">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clSubject">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="cl:clDate">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="cl:clCallType">
<control template="/org/alfresco/components/form/controls/selectmany.ftl" />
</field>
</appearance>
</form>
<!– Data Grid view –>
<form id="datagrid">
<field-visibility>
<show id="cl:clTitle" />
<show id="cl:clClient" />
<show id="cl:clNumber" />
<show id="cl:clSubject" />
<show id="cl:clDatet" />
<show id="cl:clCallType" />
</field-visibility>
</form>
</forms>
</config>
<!– Edit view –>
<config evaluator="node-type" condition="cl:clCallDatalist">
<forms>
<!– Edit marketing item form –>
<form>
<field-visibility>
<show id="cl:clTitle" />
<show id="cl:clClient" />
<show id="cl:clNumber" />
<show id="cl:clSubject" />
<show id="cl:clDatet" />
<show id="cl:clCallType" />
</field-visibility>
<create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
<appearance>
<field id="cl:clTitle">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clClient">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clNumber">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="cl:clSubject">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="cl:clDate">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="cl:clCallType">
<control template="/org/alfresco/components/form/controls/selectmany.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
09-19-2014 03:46 PM
09-22-2014 03:16 PM
09-23-2014 07:48 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="extension.cl.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/CallDatalistModel.xml</value>
</list>
</property>
</bean>
</beans>
09-23-2014 08:48 AM
09-23-2014 08:56 AM
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.