Input Masks

Input masks (or Display masks) allow you to fix the format for the data values that are either entered, selected, or generated automatically by the system. Data values that do not conform to the mask will not be accepted. Additionally, certain reserved characters are not interpreted as expected and will be replaced by underscores. For information on these reserved characters, see Reserved Characters.

Input masks can be of the following types:

Numerical

This mask type is used to format numbers of the type: Integer, Decimal and Double. The components of a numerical mask can be of the type:

  • "#" - Display the digit only if there is a significant digit in that location of the number
  • "0" - Always show the digit entered in this location
  • "."- The position of the decimal point in the number.

e.g. A mask of ###.00 would allow an input up to 999.99 and would force the number to be displayed to 2 decimal places

Example Input Masked Input
2.5 2.50
123.45 123.45
25.345 25.34

Simple

This mask type is best suited for entering strings of limited length, such as phone numbers, post codes, social security numbers, etc. The mask is specified using a sequence of characters. Some characters serve as placeholders for digits or letters, while others are literals used to separate value portions.

Mask Example Input Masked Input
(999)000-00-00 9991234567 (999)123-45-67
00/00/00 120312 12/03/12

Date/Time

This mask is of the type Date/Time and can be any of the standard date time formats when chosen from a calendar. Three example input mask options are provided; however, you can define a Date/Time input mask of your own in the box provided.

Examples are:

Mask Masked Input
dd-mm-yy 21-10-12
dd-mmmm-yyyy 21-October-2012
dd-mm-yyyy hh:mm:ss 21-10-2012 07:34:56

The Date/Time input mask you define here will determine the date format used when dates are exported as CSV.

 

Reserved Characters

When configuring an Input Mask for a Text column in Micromine Geobank For Field Teams, specific alphabet characters are not interpreted by the front-end grid. Instead of enforcing or displaying these characters, the application will replace them with underscores. This is because the mask type used by the editor for text columns reserves those characters for a specific meaning.

The reserved characters and their meaning are as follows:

Character Meaning
L An L character requires an alphabetical character in this position. For English, this is A-Z, a-z.
l An l character permits only an alphabetical character in this position, but doesn’t require it.
A An A character requires an alphanumeric character in this position. For English, this is A-Z, a-z, 0-9.
a An a character permits only an alphanumeric character in this position, but doesn’t require it.
C A C character requires an arbitrary character in this position.
c A c character permits an arbitrary character in this position, but doesn’t require it.
0 A 0 character requires a numeric character in this position.
9 A 9 character permits only a numeric character in this position, but doesn’t require it.
# A # character permits only a numeric character or a plus or minus sign in this position, but doesn’t require it.

You can use these input mask characters for their intended meaning, but you cannot use them as literal characters. If you want to use any 'as is' (i.e. literal characters in the mask), you can enter a backslash (\) before a reserved character.

For example, the following input mask: QWERTYUIOPASDFGHJKLZXCVBNM would display as: QWERTYUIOP_SDFGHJK_ZX_VBNM.

You can force the display of the missing characters by adding a backslash in front of the reserved characters, like this: QWERTYUIOP\ASDFGHJK\LZX\CVBNM; which will display as QWERTYUIOPASDFGHJKLZXCVBNM.