help

4.5 Writing On-Validate / On-Change scripts in Field-Map Project Manager

previous 

next 

Working with layer attributes > Writing On-Validate / On-Change scripts in Field-Map Project Manager

On-Validate script

This script is bound to a single data field and it is executed BEFORE the value of that data field changes. The purpose of an on-validate script is to decide whether the new value of the data field is valid or not.


On-Change script

This script is bound to a single data field and it is executed AFTER the value of that data field has changed. The purpose of an on-change script is to react to a data field change (for example by computing a value of another data field).

  1. Open Field-Map Project Manager.
  2. Click the On-Validate / On-Change script pane to view and edit a script.
  3. Click the field that the script should belong to.



  1. Write the text of a script. 
    1. Use the Import button to load an existing script.
    2. Use the Compile button to compile the script.
    3. Use the Edit in large window button to open an edit window.
    4. Use the button Insertattribute names of selected layer to code



© 2024 IFER Monitoring and Mapping solutions, Ltd.