Skip to content

Long

Reference5 minFoundation

Use Long for a larger whole-number count, such as a cumulative inventory quantity. Keep serial numbers with leading zeros in Text, even when they contain only digits.

A whole-number field for larger integer values.

LONG

Use when

  • Inventory: a cumulative count of 3000000000 units

Choose another type for

  • Identifiers that need leading zeros

On a form

A number input with 0 decimal places.

In views

Can be selected for configured data view columns. Spreadsheet editing is offered for own, non-key fields of this type when the column is editable.

In Smart Script

getCurrentValue() has a String return type for every field type; an unset value can be null. Parse with parseInt or parseFloat before arithmetic.

Import and export

The importer cleans the cell text and forwards it as a string. Inspect the analysis preview before confirming. Configure field settings, defaults and form rules in the destination workspace.

Example

Inventory: a cumulative count of 3000000000 units

Settings

SettingWhat it does
Show in record detailsIncludes this field in the record details; forms and data views are configured separately.
Show in the record headerIncludes this field among the record header fields.
PositionSets the order in record details; lower numbers appear first.
Virtual fieldComputes the value at display time instead of storing it.
Encrypt valuesChoose encryption when you create the field.
Encryption keySelect an ACTIVE encryption key.
Default valueSets a plain value or Smart Script for new records.
The Long field configuration and its type-specific settings.

    Start the field name with an English letter. Use letters, digits, spaces and underscores.