Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Observer ID

...

Unique ID

...

Setting configurable defaults

...

Table of Contents

Observer ID

MobileMap provides users with the option to automatically add their initials or name to all features that are collected.  While this functionality saves time and can help improve data quality, this field is only filled in when it is currently blank.  When a new feature is created, it will be populated when the data entry form is opened.  If an existing feature is edited in MobileMap and this field has not yet been filled in, it will be populated when the data entry form is opened.  If an existing feature is edited in MobileMap and this field has already been populated with a value, MobileMap will not overwrite the existing value.  MobileMap does not assume that if a user simply views or saves a feature that this field should be updated.

...

Note that it is critical that the underlying data model contains the field that is entered in the 'Observer Field' setting, that it is of Text data type and that it is sufficiently long to support whatever users may insert as their 'Observer Initials or Name'.  Users should be instructed on what values to enter here, and some allowance should be made in the data model to account for slightly longer entries.  So, if users will use a 3-letter initial for this, we recommend using a text field with at least 5 characters.

 

Unique ID

If this field name is found and is Text data type, a unique ID will be generated when any of the listed components change. Example: 'fieldname:{field1}{yyyy}{observer}{000}' will generate a unique ID based on the field1 code plus the 4-digit year, plus the observer ID, plus 3-digit auto-incrementing number starting at 1, separated by a hyphen. The number will reset to 1 when any field changes. Component fields must be coded value domains.Setting

Configurable Defaults

MobileMap provides an interface for users to specify default values that they’d like to use for fields which will mostly have the same value across a site, day, or project area.  These values will automatically be applied to any new features that are collected, though the user will have the option of overriding these values before each individual feature is saved.To Set

Setting Configurable Defaults

...

Select the Main Menu, then select ‘Edit Configurable Defaults’.

This opens the configurable defaults menu.  This lists every field that uses a select list (rather than free text) by layer.  For any fields for which you’d like to use configurable defaults, simply select the value from the select list and verify that the ‘Enabled’ box is checked.  Select ‘Done’ and start collecting data with your configurable defaults. 

 

 

Calculated Fields

Calculated fields enable faster data collection by enabling automated the population of specified fields using equations that that are defined in MobileMap settings (Settings > Data Model > Calculated Fields).  One situation where calculated fields are useful is for generating unique IDs during data collection, where you want the ID to include meaningful information like the current date and time and the current user.  Another situation is where you want to run a calculation that would otherwise require the use of a calculator (e.g. Field X / 123) followed by manual data entry of the result.

...

The table below includes the various equations components that are currently supported, along with examples using versions 1 and 2 of the equation format.  New equations should be written using version 2, unless unsupported functionality is required (e.g., auto-incrementing integers).  It is not possible to mix equation versions - a single version must be selected (Settings > Data Model > Calculated Feilds Equation Format).

Equation Component

Version 1 Syntax

Version 2 Syntax

Version 2 Example

Dates:

 

 

 

YYYY

{YYYY}

Date('YYYY')

Field1:Date('YYYY')

MMDDYYYY

{MMDDYYYY}

Date('MMDDYYYY')

Field1:Date('MMDDYYYY')

DDMMYYYY

{DDMMYYYY}

Date('DDMMYYYY')

Field1:Date('DDMMYYYY')

YYYYMMDD

{YYYYMMDD}

Date('YYYYMMDD')

Field1:Date('YYYYMMDD')

YYYYDDMM

{YYYYDDMM}

Date('YYYYDDMM')

Field1:Date('YYYYDDMM')

YYYY-MM-DD

{YYYY-MM-DD}

Date('YYYY-MM-DD')

Field1:Date('YYYY-MM-DD')

YYYY-DD-MM

{YYYY-DD-MM}

Date('YYYY-DD-MM')

Field1:Date('YYYY-DD-MM')

YYYY-MM-DD-HH-MM-SS

{YYYY-MM-DD-HH-MM-SS}

Date('YYYY-MM-DD-HH-MM-SS')

Field1:Date('YYYY-MM-DD-HH-MM-SS')

YYYY-DD-MM-HH-MM-SS

{YYYY-DD-MM-HH-MM-SS}

Date('YYYY-DD-MM-HH-MM-SS')

Field1:Date('YYYY-DD-MM-HH-MM-SS')

Universally Unique ID

{UUID}

UUID()

Field1:UUID()

Observer name or initials

{Observer}

Observer()

Field1:Observer()

Field value

{fieldname}

$Feature.fieldname

Field1:$Feature.Field2

Auto-incrementing integer (number of zeros indicates the number of digits)

{0000}

NA

 

Constants 

NA

123

Area:3.14159 * $Feature.radius* $Feature.radius

Mathmatical Operators

 

 

 

Addition (can be used for concatenation of non-numeric components

NA

+

Field1:Date('YYYY') + Observer()

Subtraction (all components in equation must be numeric)

NA

Field1:$Feature.Field3 - $Feature.Field2

Multiplication (all components in equation must be numeric)

NA

Field1:$Feature.Field3 * $Feature.Field2

Division (all components in equation must be numeric)

NA

/

Field1:$Feature.Field3 / $Feature.Field2

String Operators

 

 

 

Mid(start_index, end_index - optional)

NA

Mid(start_index, end_index)

Field1:Mid($Feature.Field2,3)