Environment: Community 5.2.x, Alfresco Maven SDK to generate repo and share tier AMP files
In my last project, I had all my properties in a custom aspect, and some properties with associated constraint (list of values). These properties were showing up as a dropdown in the search and edit forms in share.
Now I have the properties directly associated to the type (instead of through aspects). Here, I do not see the dropdown list (to pick a value from) in the edit and the search form.
I am in some misunderstanding I believe. Please note that the field is shown as a regular text field.
My constraint:
<constraints>
<constraint name="mcus:employeeNamesList" type="LIST">
<parameter name="allowedValues">
<list>
<value></value>
<value>Alan G</value>
<value>Alex S</value>
<value>Barb Sindy</value>
<value>Bert Ser</value>
...
</list>
</parameter>
<parameter name="caseSensitive">
<value>true</value>
</parameter>
<parameter name="sorted">
<value>false</value>
</parameter>
</constraint>Here is my type (with the property) defined in my model.
<type name="mcus:financeReceipts">
<title>Financial Receipts</title>
<property name="mcus:employeeName">
<title>Employee Name</title>
<type>d:text</type>
<mandatory>false</mandatory>
<index enabled="true">
<tokenised>both</tokenised>
</index>
<constraints>
<constraint ref="mcus:employeeNamesList" />
</constraints>
</property>Part of share-config-custom.xml
<config evaluator="model-type" condition="mcus:financeReceipts">
<forms>
<!-- Search form -->
<form id="search">
<field-visibility>
<!--custom-->
<show id="mcus:employeeName"/>
</field-visibility>
<appearance>
<!--custom-->
<field id="mcus:employeeName" label-id="mcus.employeeName">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
</forms>
</config>