The Lion Field object is returned by one of the following Lion COM connection functions: GetFieldByIndex, GetFieldByName, GetRepeatingField, GetOccurrenceField, or GetDisplayField.
The following functionality is provided:
| Name | Type | Access | Description |
|---|---|---|---|
| CopyFrom | Boolean | Read-only | Determines whether the field is part of a copy-from section. |
| DecimalPlaces | Integer | Read-only | Number of decimals (if field type is Numeric) or "0" (otherwise). |
| Enabled | Boolean | Read-only | Indicates whether the field is enabled and can be interacted with. |
| FieldLength | Integer | Read-only | Length of the field. |
| FieldType | String | Read-only | Type of field. Possible values are N, +, -, C, or A (numeric or alphanumeric). |
| Name | String | Read-only |
Name of the field. If the field is part of a copy-from section, the field name is concatenated with the copy-from number. For example: "MyField04". |
| NameOrig | String | Read-only | Returns the original and untranslated (underscore to hyphen) name of the field. |
| ReadOnly | Boolean | Read-only | Indicates whether the field is read-only and cannot be modified. |
| Value | String | Read/Write | Value of the field, returned as a string. |
| X | Integer | Read-only | X-position of the screen. |
| Y | Integer | Read-only | Y-position of the screen. |
# Create an object for a form field and set a value
$Customer_TelNr = $AMTApp.GetFieldByName('TEL-NO')
if ($Customer_TelNr.ReadOnly -ne $true) {
$Customer_TelNr.Value = '+1 867 5309'
}
# Transmit to send the values
$AMTApp.Transmit()