IntegerColumn
A Column for an integer type field.
Signature
IntegerColumn(config)
Parameters
config
C & IntegerColumnType<TChoices, Type, Default, Dropdown>
Properties:
-
active (optional):
booleanIndicates whether to display the field in list and forms -
array (optional):
booleanCreates another table to store the info that will be captured by this field -
attributes (optional):
Record<string, string | number | boolean>Pairs of any supported dictionary attributes (sys_schema_attribute) -
audit (optional):
booleanIndicates whether to track the creation, update, and deletion of all records in the table. -
choices (optional):
Record<string | number, string | ChoiceConfig>Choice values for this field. Keys are the stored values; values are either a display label string or a ChoiceConfig object.ChoiceConfig properties:
label(required):string— Display label shown in the UIsequence(optional):number— Sort order for the choicehint(optional):string— Tooltip hintinactive(optional):boolean— Hides the choice from the selection listlanguage(optional):string— Language code for the labeldependentValue(optional):string | number— Only show when thedependentfield equals this valueinactiveOnUpdate(optional):boolean— Makes the choice inactive after selection
-
default (optional):
Default | stringDefault value of the field when creating a record -
dependent (optional):
stringlimit the values available to select based on the value of the dependent field -
dropdown (optional):
Dropdown | choiceDropdownType -
dynamicValueDefinitions (optional):
DynamicValueDefinitions<ReferenceSchema>Object literal, specify type and then relevant additional parameters for reference choices and script defaults -
elementReference (optional):
booleanIndicates if the value of this field connotes the "element type" -
functionDefinition (optional):
stringDefinition of a function that the field performs -
help (optional):
stringHelp information for the field -
hint (optional):
stringDescribes field in more verbose form -
label (optional):
string | Documentation[]Unique label for the column that appears on list headers and form fields -
mandatory (optional):
booleanIndicates whether the field must contain a value to save a record -
max (optional):
number -
maxLength (optional):
number | stringMaximum length of the field value -
min (optional):
number -
plural (optional):
stringPlural form of the field name -
primary (optional):
booleanIndicates the primary key for a table -
readOnly (optional):
booleanIndicates whether you can edit the field value -
readOnlyOption (optional):
readOnlyOptionTypeSpecifies the read-only behavior for the field -
spellCheck (optional):
booleanEnables spell check for this field -
tableReference (optional):
booleanIndicates if the value of this field is a reference to another table in the schema -
textIndex (optional):
booleanEnables a natural language search on this field -
unique (optional):
booleanCreates a unique index on this field -
widget (optional):
stringStyle for the element type such as "radio" -
xmlView (optional):
booleanDisplays the field value as XML -
formula (optional):
stringFormula script for a formula-type virtual field. Sets virtual=true and virtual_type='formula'. Mutually exclusive with dynamicValueDefinitions of type 'calculated_value', which uses virtual_type='script'. -
virtualType (optional):
'script' | 'formula'Specifies the type of virtual/calculated field. Derived automatically: 'formula' when formula is set, 'script' when dynamicValueDefinitions type is 'calculated_value'. Only set explicitly to override.