02-22-2011 06:24 AM
02-22-2011 08:42 AM
02-22-2011 10:13 AM
<model name="pref:mymodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>mysite</description>
<author></author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"></import>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"></import>
</imports>
<namespaces>
<namespace uri="myuri" prefix="pref"></namespace>
</namespaces>
<types>
<type name="pref:type1">
<title>typee1</title>
<parent>cm:folder</parent>
<properties>
<property name="pref:name">
<title>name</title>
<type>d:text</type>
</property>
<associations>
<association name="pref:assoc1">
<title>ass1</title>
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</association>
<association name="pref:assoc2">
<title>ass2</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>pref:type2</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<type name="pref:type2">
<title>typee2</title>
<parent>cm:content</parent>
</type>
</types>
</model>
<config evaluator="model-type" condition="pref:type1">
<forms>
<form id="search">
<field-visibility>
<show id="cm:name" force="true"></show>
<show id="pref:assoc1"></show>
<show id="pref:assoc2"></show>
</field-visibility>
<appearance>
<field id="cm:name" label="Name"></field>
<field id="pref:assoc1" label="ass1"></field>
<field id="pref:assoc2" label="ass2"></field>
</appearance>
</form>
</forms>
</config>
02-22-2011 10:24 AM
02-22-2011 10:56 AM
02-22-2011 02:08 PM
Associations is not searcheable by lucene. Only one special type of association is currently searcheable and that is categories.
You would have to add a rule or a behaviour and store the the username/pref:type name on update in a special field just used for searching.
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.