03-19-2015 06:47 AM
03-19-2015 07:02 AM
03-19-2015 03:55 PM
<?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="dbDoc.datalist.extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/dbDoc-datalist-model.xml</value>
</list>
</property>
</bean>
<bean id="dbDoc.datalist.ResourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.extension.dbDoc-datalist-model</value>
</list>
</property>
</bean>
</beans>
# Display labels for Documents data list
dbd_dbDocDatalistmodel.type.dbd_dbDoc.title=Documents database
dbd_dbDocDatalistmodel.type.dbd_dbDoc.description=Allows to build a simple database of documents
dbd_dbDocDatalistmodel.property.dbd_dbDocReqdate.title=Data di richiesta
dbd_dbDocDatalistmodel.property.dbd_dbDocEmdate.title=Data di emissione
dbd_dbDocDatalistmodel.property.dbd_dbDocEnddate.title=Data di scadenza
dbd_dbDocDatalistmodel.property.dbd_dbDocAttachments.title=Documenti
dbd_dbDocDatalistmodel.property.dbd_dbDocCompany.title=Azienda
dbd_dbDocDatalistmodel.property.dbd_dbDocVAT.title=Partita IVA
dbd_dbDocDatalistmodel.property.dbd_dbDocRequest.title=Istituto richiedente
dbd_dbDocDatalistmodel.property.dbd_dbDocNotes.title=Note
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="dbd: dbDocDatalistmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description> Documents Datalists Model</description>
<author></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 Datalist Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="dbDoc.Datalist.model" prefix="dbd"/>
</namespaces>
<types>
<type name="dbd:dbDoc">
<title>Documents database</title>
<parent>dl:dataListItem</parent>
<properties>
<property name="dbd:dbDocCompany">
<title>Azienda</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="dbd:dbDocVAT">
<title>P.IVA</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="dbd:dbDocReqdate">
<title>Data di richiesta</title>
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
<property name="dbd:dbDocEmdate">
<title>Data di emissione</title>
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
<property name="dbd:dbDocEnddate">
<title>Data di scadenza</title>
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
<property name="dbd:dbDocRequest">
<title>Istituto richiedente</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="dbd:dbDocNotes">
<title>Note</title>
<type>d:content</type>
<mandatory>false</mandatory>
</property>
</properties>
<associations>
<association name="dbd:dbDocAttachments">
<title>Documenti</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:titled</aspect>
</mandatory-aspects>
</type>
</types>
</model>
<alfresco-config>
<!– dbDoc:documents DB type create form config–>
<config evaluator="model-type" condition="dbd:dbDoc">
<forms>
<form>
<field-visibility>
<show id="dbd:dbDocCompany" />
<show id="dbd:dbDocVAT" />
<show id="dbd:dbDocReqdate" />
<show id="dbd:dbDocEmdate" />
<show id="dbd:dbDocEnddate" />
<show id="dbd:dbDocRequest" />
<show id="dbd:dbDocNotes" />
<show id="dbd:dbDocAttachments" />
</field-visibility>
<create-form template="../data-lists/forms/dataitem.ftl" />
<appearance>
<field id="dbd:dbDocNotes">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="dbd:dbDocAttachments">
<control template="/org/alfresco/components/form/controls/attachments.ftl" />
<control-param name="startLocation">{doclib}</control-param>
<control-param name="ShowTargetLink">true</control-param>
</field>
</appearance>
</form>
<!– Data Grid view –>
<form id="datagrid">
<field-visibility>
<show id="dbd:dbDocCompany" />
<show id="dbd:dbDocVAT" />
<show id="dbd:dbDocReqdate" />
<show id="dbd:dbDocEmdate" />
<show id="dbd:dbDocEnddate" />
<show id="dbd:dbDocRequest" />
<show id="dbd:dbDocNotes" />
<show id="dbd:dbDocAttachments" />
</field-visibility>
</form>
</forms>
</config>
<!– dbDoc:task type edit form config–>
<config evaluator="node-type" condition="dbd:dbDoc">
<forms>
<!– Data List pop-up edit form –>
<form>
<field-visibility>
<show id="dbd:dbDocCompany" />
<show id="dbd:dbDocVAT" />
<show id="dbd:dbDocReqdate" />
<show id="dbd:dbDocEmdate" />
<show id="dbd:dbDocEnddate" />
<show id="dbd:dbDocRequest" />
<show id="dbd:dbDocNotes" />
<show id="dbd:dbDocAttachments" />
</field-visibility>
<create-form template="../data-lists/forms/dataitem.ftl" />
<appearance>
<field id="dbd:dbDocNotes">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="dbd:dbDocAttachments">
<control template="/org/alfresco/components/form/controls/attachments.ftl" />
<control-param name="startLocation">{doclib}</control-param>
<control-param name="ShowTargetLink">true</control-param>
</field>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Load the datalist form config –>
<bean id="exampleDatalistsFormsClientConfig" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/dbDoc-datalist-config-custom.xml</value>
</list>
</property>
</bean>
</beans>
03-24-2015 11:15 AM
<?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="sHistory.datalist.extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/sHistory-datalist-model.xml</value>
</list>
</property>
</bean>
<bean id="sHistory.datalist.ResourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.extension.sHistory-datalist-model</value>
</list>
</property>
</bean>
</beans>
# Display labels for Software History Data Lists Model
shl_sHistoryDatalistmodel.type.shl_sHistory.title=Software Modification History
shl_sHistoryDatalistmodel.type.shl_sHistory.description=Software Modification History with version tracking
shl_sHistoryDatalistmodel.property.shl_sHistoryVersion.title=Version
shl_sHistoryDatalistmodel.property.shl_sHistoryDate.title=Date
shl_sHistoryDatalistmodel.property.shl_sHistoryAttachments.title=Attachments
shl_sHistoryDatalistmodel.property.shl_sHistoryDescription.title=Description
shl_sHistoryDatalistmodel.property.shl_sHistoryNotes.title=Notes
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="shl: sHistoryDatalistmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Software History Datalists Model</description>
<author>MU</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 Datalist Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="sHistory.Datalist.model" prefix="shl"/>
</namespaces>
<types>
<type name="shl:sHistory">
<title>Software History</title>
<parent>dl:dataListItem</parent>
<properties>
<property name="shl:sHistoryDate">
<title>Date</title>
<type>d:datetime</type>
<mandatory>true</mandatory>
</property>
<property name="shl:sHistoryVersion">
<title>Version</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="shl:sHistoryDescription">
<title>Description</title>
<type>d:content</type>
<mandatory>true</mandatory>
</property>
<property name="shl:sHistoryNotes">
<title>Notes</title>
<type>d:content</type>
<mandatory>false</mandatory>
</property>
</properties>
<associations>
<association name="shl:sHistoryAttachments">
<title>Attachments</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:titled</aspect>
</mandatory-aspects>
</type>
</types>
</model>
<alfresco-config>
<!– sHistory:book type create form config–>
<config evaluator="model-type" condition="shl:sHistory">
<forms>
<form>
<field-visibility>
<show id="shl:sHistoryDate" />
<show id="shl:sHistoryVersion" />
<show id="shl:sHistoryDescription" />
<show id="shl:sHistoryNotes" />
<show id="shl:sHistoryAttachments" />
</field-visibility>
<create-form template="../data-lists/forms/dataitem.ftl" />
<appearance>
<field id="shl:sHistoryDescription">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="shl:sHistoryNotes">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
</appearance>
</form>
<!– Data Grid view –>
<form id="datagrid">
<field-visibility>
<show id="shl:sHistoryDate" />
<show id="shl:sHistoryVersion" />
<show id="shl:sHistoryDescription" />
<show id="shl:sHistoryNotes" />
<show id="shl:sHistoryAttachments" />
</field-visibility>
</form>
</forms>
</config>
<!– sHistory:task type edit form config–>
<config evaluator="node-type" condition="shl:sHistory">
<forms>
<!– Data List pop-up edit form –>
<form>
<field-visibility>
<show id="shl:sHistoryDate" />
<show id="shl:sHistoryVersion" />
<show id="shl:sHistoryDescription" />
<show id="shl:sHistoryNotes" />
<show id="shl:sHistoryAttachments" />
</field-visibility>
<edit-form template="../data-lists/forms/dataitem.ftl" />
<appearance>
<field id="shl:sHistoryDescription">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
<field id="shl:sHistoryNotes">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Load the datalist form config –>
<bean id="exampleDatalistsFormsClientConfig" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/sHistory-datalist-config-custom.xml</value>
</list>
</property>
</bean>
</beans>
03-25-2015 01:20 PM
<create-form template="../data-lists/forms/dataitem.ftl" />
[…]
<control template="/org/alfresco/components/form/controls/attachments.ftl" />
03-29-2015 09:11 AM
04-03-2015 08:06 AM
04-03-2015 01:24 PM
04-06-2015 05:00 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.