After having problems with the examples found in books and via Google, I browsed through this forum.So, let me get this straight - we have Aspects, and can create custom forms to edit the properties - but we cannot search for content with these properties because for SOME reason, Advance Search cannot do that. What?!I'm using the Community Edition, version 4.2c.If I am wrong, then show me how to do it. I added:<form labelId="aspect.agy_agencyDocument"
descriptionId="aspect.agy_agencyDocument.search.description">agy:agencyDocument</form>
and it shows up in the menu, but when I select the option, I get:org.alfresco.repo.forms.FormNotFoundException: 01050034 A form could not be found for item: [type]agy:agencyDocument
My form definition is:
<config evaluator="model-type" condition="agy_agencyDocument">
<forms>
<form id="search">
<field-visibility>
<show id="cm:name" />
<show id="cm:title" force="true" />
<show id="cm:description" force="true" />
<show id="mimetype" />
<show id="cm:modified" />
<show id="cm:modifier" />
<show id="agy:agencyId" />
<show id="agy:agencyBusinessUnit" />
<show id="agy:agencyDivision" />
</field-visibility>
</form>
<appearance>
<field id="cm:description">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="mimetype">
<control template="/org/alfresco/components/form/controls/mimetype.ftl" />
</field>
<field id="cm:modified">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="cm:modifier">
<control>
<control-param name="forceEditable">true</control-param>
</control>
</field>
<!– agy:agencyDocument –>
<field id="agy:agencyId" label-id="agy_agencyCommonModel.type.agy_agencyDocument.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<!– agy:agencyBusinessUnit –>
<field id="agy:agencyBusinessUnit" label-id="agy_agencyCommonModel.property.agy_agencyId.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<!– agy:agencyDivision –>
<field id="agy:agencyDivision" label-id="agy_agencyCommonModel.property.agy_agencyDivision.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</forms>
</config>