AnsweredAssumed Answered

AdvancedSeach by date not working

Question asked by sharifu on May 1, 2012
Latest reply on May 1, 2012 by sharifu
below is part of my share-config-custom.xml

the advanced search for all the other properties for my model works but not the date ranges. i can't seem to figure out why.
can anyone help?

<config evaluator="string-compare" condition="AdvancedSearch">
         <!– Forms for the advanced search type list –>
               The 'form' config element contains the name of the model type
               of the form to display.
               The element supports the following optional attributes:
                  id = form id, the id of "search" will be assumed if not set
                  label = label text to display - defaults to model type if not set
                  labelId = I18N message id of label text to display
                  description = description text to display
                  descriptionId = I18N message id of description text to display
            <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 label="Contract Document" description="Spectrum Contract Document">sp:contract</form>

  <!– Customisation to support contract metadata search
   <config evaluator="model-type" condition="cm:content">
   <config evaluator="model-type" condition="sp:contract">
         <form id="search">
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="sp:thirdParties" force="true" />
               <show id="sp:location" force="true" />
               <show id="sp:responsibleEmp" force="true" />
               <show id="sp:contractRef" force="true" />
               <show id="sp:logNumber" force="true" />
               <show id="sp:effectiveDate" />
               <show id="sp:expiryDate" />
               <field id="sp:thirdParties" label-id="Third Parties" />
               <field id="sp:location" label-id="Location" />
               <field id="sp:responsibleEmp" label-id="Responsible Spectrum Employee" />
               <field id="sp:contractRef" label-id="Internal Reference" />
               <field id="sp:logNumber" label-id="Log Number" />
               <field id="sp:effectiveDate" label-id="Effective Date">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               <field id="sp:expiryDate" label-id="Expiry Date">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />