Built-In Variables

Geobank features a number of built-in variables that can be used to substitute and return values in fields on forms. The following table lists and defines the available variables.

Variable Definition
[$GBTEMP]

Substitutes the configured file path of the temporary folder for objects that need to specify a file path.

This can also be [$GBISTEMP] in legacy objects.

[$GBWORK]

Substitutes the configured file path of the work folder for objects that need to specify a file path.

This can also be [$GBISWORK] in legacy objects.

[$GBRESOURCES]

Substitutes the configured file path of the Geobank Resources folder for objects that need to specify a file path.

[$GBCONFIG]

Substitutes the configured file path of the Geobank Configuration folder for objects that need to specify a file path.

$DATE

Substitutes the current date in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

  2. The default value of sub parameters and global sub parameters.

$DATETIME

Substitutes the current date and time in the default value of substitute parameters and global sub parameters.

$DEFAULTPROJECT Substitutes the name of the default project in Plan View and other drillhole tools.
$DESPATCHID

Substitutes the Despatch ID in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

$FILENAME

Occurs in the configured import when you want to save the file name into one of the database columns (such as DATA_SOURCE).

$INSTANCE

Used by LAS File import. This variable returns a maximum instance for a given project and site ID. The field can be mapped to a column for the LAS File import.

$OBJECTNAME

Used for Field and Text Labels templates in Graphic Reports, allowing you to set the captions of labels to the name of the object being executed.

$USER

Substitutes the current username in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

  2. For the default value of sub parameters and global sub parameters.

More information is contained in General (Options) and Substitution Parameters.

General

Substitution Parameters

Despatch Details

Receipt Details