Hi,
I have three fields that contains values for the tenure of a contract, e.g. custom:tenureYear=5, custom:tenureMonth=11 and custom:tenureDays=3, these fields are simple text, non editable and are calculated through a behavior.
I want that in the adv. search form I can have three other fields in which I can input a range for custom:tenureYear, custom:tenureMonth and custom:tenureDays and display the result, e.g. showing in the search results the contracts that have tenure years of 4 and 5 I can input a to and from field with value 4 and 5 and it fetches the results by checking the custom:tenureYear for every contract and values that lies in between the to and from values are displayed as a result.
Thanks
Hiten Rastogi
Configure the search form to use the numberrange.ftl form control template for the fields you need. I would also adivse you to change the data model to use d:int instead of d:text for these properties, otherwise the sorting of the field values may not be correct and you might end with incorrect results of range queries too.