In this chapter:


Writing Scripts

Creating a Field-Map script consists of three basic steps:

  1. Writing the definition of the script
    Use a built-in text editor to write the sequence of commands which describe what the script should do. There are several places where you can enter a script according to the kind of script you are creating.
  2. Compiling
    By running a compilation process, you will make Field-Map check whether the script is written correctly and prepare it for execution.
  3. Executing
    If the script is successfully compiled, it can be executed either in Field-Map Project Manager as a part of the Data processing tools or in Field-Map Data Collector. The execution is triggered by the user or automatically by an event in Data Collector.


For more information about scripts see Field-Map Scripting Manual


What is Field-Map scripting and what is it good for?


Field-Map scripting gives a user possibility to customize functionality of Field-Map software Unlike the other methods (like custom development of Field-Map application itself or development of DLL extensions) it brings several key benefits:


    • simple editing, debugging and adjusting
    • direct access to all data layers and attributes
    • possibility to define custom handling of many events related to data input
    • number of predefined functions which enable quick development of even complex and interactive scripts
    • possible to build a script repository and easily adapt and use existing scripts for new projects
    • assistance of IFER during the script development is not necessary (but still possible)


By writing a script you can create project specific data validation mechanism, add automatically computed attributes or develop complex new functions for data manipulation and analysis.