Field triggers

Field triggers come into effect when the value of a field changes, usually by user input. The field trigger can then update the contents of this field, or the content of another field.

 

Setting a trigger

To set a trigger, do the following:

  1. Go to the field where you want to place the trigger.
  2. Go to the tab 'Field triggers'.
  3. Click 'Add field trigger' , you will automatically go to the details of the new trigger. Select the type you need and set the parameters (if any are needed).

The available field triggers are:

  • Check and/or replace

    Uses regular expressions to validate the content of the field.

  • End date/time setter

    When a class has a field for a start date and an end date, the end date should never be before the start date. In most cases the start date is entered by a user first. This trigger copies the value of the start date to the end date (when it is still empty). This trigger can be applied to fields with data type 'date', 'date/time' or 'time'.

  • JAVA plugin helper

    A field trigger implemented in a JAVA class file. This option is not available yet for external developers. CrossmarX can program the calculations in the mean time. If you want to develop the calculation your self, please use Velocity.

  • Last modification setter

    Sets the last modification of field data.

  • Latitude & longitude

    Calculates latitude and longitude from address data. It works on the following data:
    - (Dutch) zip code (4 and 6).
    - zip code 6 and house number.
    - City, Street and house number.
    The zip code data overrules the city and street data.
    The trigger must be set on each of the relevant fields.

    Note: this field trigger is not triggered during an import.
    Note: this is an extra module that needs to be activated by CrossmarX.

  • Script

    Use this helper to implement your own trigger using a script.

  • Street and city

    Calculates the street and the city of an address from a zip and number by calling a webservice.

    Note: this field trigger is not triggered during an import.

  • String requirements

    With this helper you can set some rules a text value has to comform to. See the parameters for which rules can be set.

  • Value copier from neighbour

    This trigger helper can be used to copy information from the neighbour record selected by the field this trigger is used on, to fields of the current record.

  • Velocity

    You can write your own trigger and integrate it in the Application Engine.