08-24-2012 04:12 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="jdl:journalDataListModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>journal Data List Model</description>
<author>Diallo Amadou</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="jdl.customlists.fr" prefix="jdl" />
</namespaces>
<!– T Y P E D E F I N I T I O N S –>
<types>
<type name="jdl:journalList">
<title>Journalisation des logs</title>
<description>Journalisation des logs</description>
<parent>dl:dataListItem</parent>
<properties>
<property name="jdl:journalTraitement">
<title>Traitement</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="jdl:journalDate">
<title>Date Evenement</title>
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
<property name="jdl:journalStatus">
<title>Statut</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="jdl:journaldetail">
<title>Details</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="jdl:journalDocumentConcerne">
<title>Document Concerné</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
</properties>
</type>
</types>
</model>
</alfresco-config>
…….
<!– jdl:journalList type –>
<config evaluator="model-type" condition="jdl:journalList">
<forms>
<!– Create item form –>
<form>
<field-visibility>
<show id="jdl:journalDate" />
<show id="jdl:journalTraitement" />
<show id="jdl:journalDocumentConcerne" />
<show id="jdl:journalStatus" />
<show id="jdl:journaldetail" />
</field-visibility>
<create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
</form>
<!– Data Grid view –>
<form id="datagrid">
<field-visibility>
<show id="jdl:journalDate" />
<show id="jdl:journalTraitement" />
<show id="jdl:journalDocumentConcerne" />
<show id="jdl:journalStatus" />
<show id="jdl:journaldetail" />
</field-visibility>
</form>
</forms>
</config>
<!– jdl_issuesList type (existing nodes) –>
<config evaluator="node-type" condition="jdl:journalList">
<forms>
<!– Data List pop-up edit form –>
<form>
<field-visibility>
<show id="jdl:journalDate" />
<show id="jdl:journalTraitement" />
<show id="jdl:journalDocumentConcerne" />
<show id="jdl:journalStatus" />
<show id="jdl:journaldetail" />
</field-visibility>
<create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
</form>
</forms>
</config>
</alfresco-config>
……………
<!– Data Grid view –>
<form id="datagrid">
<field-visibility>
<show id="jdl:journalDate" />
<show id="jdl:journalTraitement" />
<show id="jdl:journalDocumentConcerne" />
<show id="jdl:journalStatus" />
<show id="jdl:journaldetail" />
</field-visibility>
<appearance>
<field id="jdl:journalDocumentConcerne">
<control>
<control-param name="activateLinks">true</control-param>
</control>
</field>
</appearance>
</form>
……….
08-27-2012 03:37 AM
08-27-2012 02:59 PM
09-07-2012 04:13 AM
<association name="jdl:journalDocumentConcerne">
<title>Document Concerné</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
10-01-2012 10:40 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.