AnsweredAssumed Answered

Advanced Search Issue

Question asked by yuva on Oct 29, 2017

I have created a advanced search for forms like this, but its not working. Anyone can tell what's the error with my code.

 

<config replace="true" evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>

<form>
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<form labelId="search.form.my_salesCustomerCare" descriptionId="search.form.desc.my_salesCustomerCare">my:salesCustomerCare</form>
<form labelId="search.form.my_contractCopies" descriptionId="search.form.desc.my_contractCopies">my:contractCopies</form>

</form>
</advanced-search>
</config>

 

<config evaluator="model-type" condition="my:contractCopies">
<forms>
<form id="search">
<field-visibility>
<show id="my:contractTypeOnCC" />
<show id="my:contractNumberOnCC" />
<show id="my:clientNameOnCC" />
<show id="my:contractStartOnCC"/>
<show id="my:contractEndOnCC"/>
</field-visibility>
<appearance>
<field id="my:contractTypeOnCC" label-id="Contract Type"/>
<field id='my:contractNumberOnCC' label-id="Contract Number">
<control template='/org/alfresco/components/form/controls/numberrange.ftl' />
</field>
<field id="my:clientNameOnCC" label-id="Client Name"/>
<field id='my:contractStartOnCC'>
<control template='/org/alfresco/components/form/controls/daterange.ftl' />
</field>
<field id='my:contractEndOnCC'>
<control template='/org/alfresco/components/form/controls/daterange.ftl' />
</field>
</appearance>
</form>
</forms>
</config>

Outcomes