# Configure a Selectable Search Comparator

With this 4App you are able to configure a dropdown list with selectable search comparators. There is no list by default, and you have to configure it for each field renderer separately.

For basic information and details on search renderers, check our object renderer documentation.

The selectable comparator list is configured with field_renderer_attributes key "extended_search_comparator_list".
It is of type array and contains the allowed selectable comparators. If your <comparator> value is in list, it is the default value. If not, the value will be ignored or just be used without the 4App installed.

# Example

<field_renderer>
  <operator>AND</operator>
  <comparator>EQUAL</comparator>
  <field_renderer_attributes>
    <entry key="extended_search_comparator_list" class="array">
      <value>EQUAL</value>
      <value>NOT_EQUAL</value>
    </entry>
  </field_renderer_attributes>
  <search_fields>
    <search_field>
      <name>name</name>
    </search_field>
  </search_fields>
</field_renderer>

Result in the GUI:

If you configured <comparator> in your field renderer, your list for the drop-down should contain that value, too. Otherwise, it will be ignored, and the first value of the list will be used.

# Possible Comparator Values

Possible values for <field_renderer_attributes> are:

  • <value>EQUAL</value>
  • <value>NOT_EQUAL</value>
  • <value>LIKE</value>
  • <value>NOT_LIKE</value>
  • <value>IN</value>
  • <value>NOT_IN</value>
  • <value>LESS_THAN</value>
  • <value>GREATER_THAN</value>
  • <value>LESS_THAN_OR_EQUAL</value>
  • <value>GREATER_THAN_OR_EQUAL</value>
  • <value>IS</value>
  • <value>IS_NOT</value>