Is it valid to set the filter Operator in the datasource xml definition?
e.g:
<field name="firstName" type="text" required="true" filterOperator="iContains"></field>
I noticed that it works this way but it seems not to be documented. (Or i have not found it)
Or should i stick with:
firstNameField.setFilterOperator(OperatorId.ICONTAINS);
I would prefer the first way, if possible, because that way i do not need to change code in many classes.
e.g:
<field name="firstName" type="text" required="true" filterOperator="iContains"></field>
I noticed that it works this way but it seems not to be documented. (Or i have not found it)
Or should i stick with:
firstNameField.setFilterOperator(OperatorId.ICONTAINS);
I would prefer the first way, if possible, because that way i do not need to change code in many classes.
Comment