numeric field validation problem in advanced search screen

cancel
Showing results for 
Search instead for 
Did you mean: 
nadeaumr
Customer

numeric field validation problem in advanced search screen

Hello,

  I defined some custom metadata (numeric and text) with constraint. I can edit it in share and all the constraint works fine. Like only numeric or specific length. I also customized the advanced search screen to use my custom field but the constraint did not work on the numeric field. I can input any character as much as i want without any validation. How come the validation works when editing and not when searching?

New field declaration:

<property name="fadq:no_clie">
<title>Numéro du client</title>
<description>Numéro du client</description>
<type>d:int</type>
<mandatory>false</mandatory>
<index enabled="true">
<tokenised>TRUE</tokenised>
<facetable>true</facetable>
</index>
<constraints>
<constraint name="fadq:MINMAX_790bb2f8-0589-4296-8919-278bc24758fd" type="MINMAX">
<parameter name="minValue">
<value>0.0</value>
</parameter>
<parameter name="maxValue">
<value>9999999.0</value>
</parameter>
</constraint>
</constraints>
</property>

Field used in advanced search:

<field id="fadq:no_clie" label-id="Numéro du client" set="deuxCol">
<control template="/org/alfresco/components/form/controls/number.ftl" />
</field>

Regards,

 

Marc

1 Reply
jljwoznica
Senior Member

Re: numeric field validation problem in advanced search screen