Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Без вариантов выбора
Типы полей, которые не предлагают вариантов для выбора.
Тип поля | Описание | Скалярный тип | Тип значения в скрипте | Длина, пример значения или критерии проверки |
---|---|---|---|---|
Big Integer | Это числовой тип поля, используемый для хранения огромных чисел. Размер сохраняемых данных – 8 байт. В SimpleOne тип отображается в виде поля ввода с числовым значением. | int8 | number |
|
No Bound Choices
Field types that do not offer to a user any choices to select from.
Field Type | Description | Scalar Type | Length or Example, validation criteria | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Big Integer | It is a numeric field type used to srote huge numbers. The size of the data stored is 8 bytes. In SimpleOne, it is displayed as an input field with a numeric value. | int8 | In SimpleOne, this range is used for record IDs
| |||||||||
Days of week | This field is displayed as a drop-down list with checkboxes presenting days of weeks: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. One or more options can be selected. Technically, the field stores a numeric value or a sum of values. The size of data is 2 bytes. Each day of week is assigned with a value: Monday = 1 For example, if Tuesday (2) and Wednesday (4) are selected, the field value is 6. | int2 | Minimum value is 0 (days are not selected). Maximum value of the field is 127 (all days selected). | Это поле отображается в виде раскрывающегося списка с флажками, указывающими дни недели: Понедельник, Вторник, Среда, Четверг, Пятница, Суббота, Воскресение. Можно выбрать несколько дней. Технически поле хранит числовое значение или сумму значений. Размер данных одной опции равен 2 байтам. Каждому дню недели присвоено значение: Понедельник = 1 Например, если выбраны Вторник (2) и Среда (4), значение поля будет равно 6. | int2 | number | Минимальное значение – 0 (дни не выбраны). Максимальное значение поля – 127 (все дни выбраны).
| |||||
Decimal | Этот тип поля поддерживает нецелые числа, с двумя цифрами после разделителя (например | Decimal | This field type implements number with up to two digits after the decimal points (for example, 12.34). | decimal | ||||||||
Duration | This field type is used to provide a duration between two events in milliseconds. It stores an integer number. | int8 | The validation processing:
| Encrypted Password |
Tip |
---|
See the Password columns article to learn more. |
Float
Validation criteria:
- Only numbers, a comma and a dot are allowed.
- Maximum string length is 14 symbols.
- Maximum fraction size is 12 symbols (after a delimiter which can be a comma or a dot, depending on a user preferences).
HTML
This field type is implemented as a rich text widget. It has various settings which are displayed as HTML tags in the database.
When this field is read-only, the data is displayed as HTML; otherwise, it is displayed as text that can be edited and transformed.
Info |
---|
There are two modes to use in this field: rich text editor and source editor. You can enter the source editor by clicking Source on the panel.
|
Changes made in one of modes are displayed in another, and vice versa.
Integer
This is a numeric field type. The size of the stored data – 4 bytes.
Journal Input
This field type is used to operate with the comment widget. Due to its features, the field cannot be read-only. It is implemented as a text area with a placeholder or the field title.
When comments are added, they are stored in the Activities Stream Fields (sys_activities_stream_field) and in the Activity Feed Items (sys_activity_feed_item) tables.
The Activities Stream Fields (sys_activities_stream_field) table stores comments from Activity Feeds that are working within UI formatter.
The Activity Feed Items (sys_activity_feed_item) table stores comments for the widget that can be configured via <activityFeed> SimpleTag.
Tip |
---|
See the Text columns article to learn more. |
Info |
---|
If async after business rules run, you can work with the field values of the Journal Input type in the same way as you do within after rules, when referring to the current context. |
JSON
This field type is physically stored as JSON.
Tip |
---|
See the Text columns article to learn more. |
Field content example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{"name": "White", "color": "#ffffff", "policy": "Open", "sys_id": 158462172516422349, "application_id": 155931135900000002, "sys_created_at": "2020-03-19 12:42:05", "sys_created_by": 155931135900000001, "sys_updated_at": "2020-03-19 12:42:05", "sys_updated_by": 155931135900000001} |
Fields of the JSON type are validating as if they contain a string structured in a JSON way. To learn more about this, please refer to official JSON documentation.
Password
This field stores passwords. It is displayed as an input field.
Tip |
---|
See the Password columns article to learn more. |
Percent Complete
Field validation criteria:
- May contain numbers [0..100].
- Maximum fraction size is 2 symbols.
- Maximum length is 6 symbols.
Phone
This field stores a phone number.
In SimpleOne interface, it is displayed as an input field with the phone number.
Tip |
---|
See the Text columns article to learn more. |
Phone validation criteria:
- May contain: (+-), spaces and numbers.
- Maximum length is 15 symbols.
Script
This field type is physically implemented as a lengthless text string.
In SimpleOne interface, it is displayed as a CodeMirror widget (JS component that provides ability of the code editing in a browser).
Tip |
---|
See the Text columns article to learn more. |
Small Integer
This is numeric field type. The size of the data stored – 2 bytes.
String
This field type is physically implemented as a string 255 symbols length.
In SimpleOne interface, it is displayed as a text input field.
Tip |
---|
See the Text columns article to learn more. |
Text
This field type is physically implemented as a lengthless text string. The memory is allocated dynamically when processing the field.
In SimpleOne interface, it is displayed as a textarea.
Tip |
---|
See the Text columns article to learn more. |
This field can contain all kinds of symbols, and it is lengthless until not limited by the Max Length attribute.
Translated Text
This field type allows the same field to display different content based on the user's chosen language.
Tip |
---|
See the Translated Text columns article to learn more. |
URL
This field type is used to store a URL.
Choice-like Fields
Field types that offer choices to a user and can be filled by selecting a value.
number |
| ||||||||||||||
Duration | Этот тип поля используется для указания продолжительности между двумя событиями в миллисекундах. Оно хранит целое число. | int8 | number | Процесс проверки:
| |||||||||||
Encrypted Password | Этот тип поля используется для обеспечения безопасного хранения паролей в базе данных с возможностью декодирования (двухстороннего шифрования). После ввода пароля и сохранения записи, поле становится пустым, пароль недоступен на форме. | varchar | string | Это поле может содержать все виды символов. Длина значения ограничена 255 символами.
| |||||||||||
Float | Этот тип поля предназначен для чисел с плавающим разделителем. | float4 | number | Критерии проверки:
| |||||||||||
HTML | Этот тип поля реализован как виджет форматированного текста. Для него существуют различные настройки, которые отображаются в виде HTML-тегов в базе данных. Когда это поле доступно только для чтения, данные отображаются в формате HTML; в ином случае они отображаются как текст, который можно редактировать и преобразовывать.
Изменения, сделанные в одном из режимов, отображаются в другом, и наоборот. | text | string | Это поле может содержать все виды символов, оно не имеет длины, пока не будет ограничено атрибутом Максимальная длина.
| |||||||||||
Integer | Это числовой тип поля. Размер сохраняемых данных – 4 байта. | int4 | number | Указанное значение не должно превышать этот диапазон: [-2147483648 ... +2147483647].
| |||||||||||
Journal Input | Этот тип поля используется для работы с виджетом комментариев. Из-за своих особенностей оно не может быть доступно только для чтения. Он реализован в виде текстовой области с подсказкой внутри поля или заголовком поля. Есть два способа ввести комментарии через поле типа Journal Input:
Когда в поле такого типа добавляются комментарии, они сохраняются в виде записей в двух таблицах:
| text | string | Это поле может содержать все виды символов, оно не имеет длины, пока не будет ограничено атрибутом Максимальная длина.
| |||||||||||
JSON | Этот тип поля хранит значения в JSON формате.
| jsonb | string | Поля типа JSON проверяются так, как поля типа String, содержащие JSON. Чтобы узнать больше, обратитесь к официальной документации JSON.
| |||||||||||
Password | Этот тип поля хранит пароли. Он отображается в виде поля для ввода. После ввода пароля и сохранения записи, поле становится пустым, пароль недоступен на форме. | varchar | string | Это поле может содержать все виды символов. Длина значения ограничена 255 символами.
| |||||||||||
Percent Complete | Этот тип поля используется для отображения хода выполнения задачи в процентах. | decimal | number | Критерии проверки поля:
| |||||||||||
Phone | Этот тип поля хранит номера телефонов. В интерфейсе SimpleOne он отображается в виде поля ввода с номером телефона.
| varchar | string | Критерии проверки номера:
| |||||||||||
Script Anchor |
| Этот тип поля является текстовой строкой без ограничения длины. В интерфейсе SimpleOne он отображается как виджет CodeMirror (компонент JavaScript, который обеспечивает возможность редактировать код в браузере).
| text | string | Это поле может содержать все виды символов и не имеет длины, пока не будет ограничено атрибутом Максимальная длина.
| ||||||||||
Small Integer | Это числовой тип поля. Размер сохраняемых данных – 2 байта. | int2 | number | Указанное значение не должно превышать диапазон: [-32768 ... +32767].
| |||||||||||
String | Этот тип поля реализован в виде строки длиной 255 символов. В интерфейсе SimpleOne он отображается как поле ввода текста.
| varchar | string | Это поле может содержать все виды символов. Если длина значения не задана, то она ограничена 255 символами; в ином случае ограничение длины может быть больше или меньше.
| |||||||||||
Text | Этот тип поля реализован в виде текстовой строки без указанной длины. Память выделяется динамически при обработке значения поля.
| text | string | Это поле может содержать все виды символов и не имеет длины, пока не будет ограничено атрибутом Максимальная длина.
| |||||||||||
Translated Text | Этот тип поля позволяет одному и тому же полю отображать различное значение в зависимости от выбранного пользователем языка.
| varchar | string | Это поле может содержать все виды символов и не имеет длины, пока не будет ограничено атрибутом Максимальная длина.
| |||||||||||
URL | Этот тип поля предназначен для хранения URL. | varchar | string | Это поле может содержать все виды символов. Длина значения ограничена 2048 символами.
|
Поля с выбором
Типы полей, которые предполагают выбор и могут быть заполнены путем выбора значения.
Тип поля | Описание | Скалярный тип | Тип значения в скрипте | Длина, пример значения или критерии проверки | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
True/False | Этот тип поля реализует двоичную логику (true или false, 1 or 0). В интерфейсе SimpleOne он отображается как флажок. Вы можете изменить его значение по умолчанию на true or false,установив или сняв флажок. | boolean | boolean |
| |||||||||||||||||||||||||||||||||||||||||||||||
Choice | Этот тип поля реализует функциональность выбора. В интерфейсе SimpleOne он отображается в виде выпадающего списка.
| varchar | string | Это поле может содержать все виды символов. Если длина значения не задана, то она ограничена 80 символами.
| |||||||||||||||||||||||||||||||||||||||||||||||
Color | Этот тип поля предназначен для хранения и обмена информацией о системном цвете или цвете элемента интерфейса. Этот тип поля используется, например, при настройке Правил оформления. | varchar | string | Это поле может содержать 4 или 7 символов (краткая или полная запись RGB), начиная с символа решетки (#). Допустимые символы: цифры, английские буквы (от A до F) и символ решетки.
| |||||||||||||||||||||||||||||||||||||||||||||||
Conditions | Этот тип поля используется для построения фильтров И/ИЛИ. В интерфейсе SimpleOne он отображается как виджет настройки фильтра. В нем хранятся условия JSON. | text | string | Критерии проверки:
| |||||||||||||||||||||||||||||||||||||||||||||||
Date | Этот тип поля хранит даты в следующем формате: ГГГГ-MM-ДД с точностью до 1 дня и без указания времени суток. Размер сохраняемых данных – 4 байта. В интерфейсе SimpleOne он отображается как поле ввода с выбором даты.
| date | string | Дата должна иметь формат ISO 8601 формат:
Элементы даты проверяются на соответствие следующим критериям:
Допустимые символы в поле:
| |||||||||||||||||||||||||||||||||||||||||||||||
Date/Time | Этот тип поля хранит отметку времени, измеренную в секундах. В интерфейсе SimpleOne он отображается как поле ввода с выбором даты и времени.
| timestamp | string | Дата и время могут быть записаны в ISO 8601 формате, как показано ниже: ГГГГ-MM-ДД чч:мм:сс Элементы даты и времени проверяются на соответствие следующим критериям:
| |||||||||||||||||||||||||||||||||||||||||||||||
Date Time Specific | Этот тип поля хранит отметку времени, измеренную в секундах. В интерфейсе SimpleOne он отображается как поле ввода с выбором даты и времени. Этот тип поля в основном используется в календарях. В отличие от поля типа Date Time, этот тип использует параметр смещения UTC, который указан в системном часовом поясе.
| timestamp | string | Дата и время могут быть записаны в ISO 8601 формате, как показано ниже: ГГГГ-MM-ДД чч:мм:сс Элементы даты и времени проверяются на соответствие следующим критериям:
| |||||||||||||||||||||||||||||||||||||||||||||||
Document ID | Этот тип поля используется для хранения различных ID. Они хранятся как универсальные уникальные идентификаторы (UUID).
| uuid | string | Критерии проверки:
| |||||||||||||||||||||||||||||||||||||||||||||||
Field Name | Этот тип поля используется для хранения ссылки на колонку в таблице и содержит список ее колонок. Чтобы указать ссылку, выполните следующие действия:
| int8 | string | Введенное строчное значение проверяется на то, что оно действительно строчное.
| |||||||||||||||||||||||||||||||||||||||||||||||
Image | Этот тип поля используется для хранения загружаемых файлов изображений в следующих форматах: .jpeg, .png, .gif, .webp, .bmp, .svg, .ico. В интерфейсе SimpleOne оно отображается в виде модального окна загрузки. | int8 | string | Указанное значение не должно превыщать этот диапазон: [9223372036854775807 ... 9223372036854775806].
| |||||||||||||||||||||||||||||||||||||||||||||||
List | Этот тип поля реализован в виде текстовой строки без указанной длины. Оно хранит ID записей указанной таблицы и отображается в виде списка значений записи, которые являются ссылками на форму записей. Он предоставляет возможность добавления, предварительного просмотра и удаления записей.
| text | string | Критерии проверки:
| |||||||||||||||||||||||||||||||||||||||||||||||
Record Class | Этот тип поля предназначен для обозначения таблицы, к которой относится определенная запись. Поле этого типа создается для таблицы в момент создания дочерней. Изначально при создании новой корневой таблицы (без каких-либо родительских) этого поля не будет. Тип сохраняемых данных – ID. Размер сохраняемых данных – 8 байт. | int8 | string | Указанное значение не должно превыщать этот диапазон: [100000000000000000 .. Пример использования:
| |||||||||||||||||||||||||||||||||||||||||||||||
Reference | Этот тип поля работает как внешний ключ и хранит ID записей указанной таблицы. Эта таблица должна быть указана в поле Ссылка. Значение хранится как цельночисленное (big integer). Чтобы ограничить количество записей при ссылке на поле, используйте определитель ссылок.
| int8 | string | Вы можете использовать следующий диапазон целочисленных значений: [-9223372036854775808 … 9223372036854775807]
| |||||||||||||||||||||||||||||||||||||||||||||||
Template | Этот тип поля позволяет хранить набор имен колонок и их значений в формате JSON для всех таблиц. Используется вложенный формат JSON. На первом уровне вложенности в качестве ключей используются номера элементов, начиная с 1. Из-за того что тип поля хранит пары данных наименование колонки ↔ значение, он обычно используется для шаблонных форм. Поле позволяет применять сохранненые данные к записям, созданным из шаблонов. Элементы являются объектами в следующем формате:
| json | string | ||||||||||||||||||||||||||||||||||||||||||||||||
Field Type | Description | Scalar Type | Length or Example, validation criteria | ||||||||||||||||||||||||||||||||||||||||||||||||
Boolean | This field type implements binary logic (True or False, 1 or 0). In SimpleOne interface, it is displayed as a checkbox. You can change its default value to 'true' or 'false' by checking or unchecking it. | boolean | true false | Choice |
Tip |
---|
See the Choice fields article to learn more |
title | More Info... |
---|
For this type of fields, supporting fields were created in the sys_db_column table. Configuration settings of the items to be selected are located in the sys_choice table. The following types of choices are available (they vary by Choice Type setting on the column creation form):
- 'None'
- Drop-down with 'None'
- Drop-down without 'None' (must specify a default value).
Tip |
---|
When creating a column you can specify Choice Table and Choice Column. In this case, the Choice Column values will be the options for the values of the specified table in the Choice Table. |
This field can contain all kinds of symbols. If the string length is not set, then it is limited up to 80 symbols.
Color
This field type is intended to keep and share information about the system color or the color of an interface element. This field type is used, for example, when configuring Style Rules.
This field can contain either 4 or 7 symbols (concise or full RGB record) starting with the hash sign (#). Allowed symbols are: numbers, English letters (A to F) and the hash sign.
Example: #B80000
Conditions
This field type is used to build AND/OR filters.
In SimpleOne interface, it is displayed as a filter configuration widget. It stores JSON conditions.
Tip |
---|
See the Condition columns article to learn more. |
The validation criteria are:
- This field can contain any symbols.
- This field should have the Dependent on column attribute set.
- This field should contain Condition Operators to be a valid condition.
Date
This field type stores the date in the following format: YYYY-MM-DD to within 1 day and not specifying the time of the day. Size of the data stored is 4 bytes.
In SimpleOne interface, it is displayed as an input field with a date picker.
Tip |
---|
See the Date and datetime columns article to learn more. |
A date must have the ISO 8601 format:
- YYYY-MM-DD
Date elements are validated to meet the following criteria:
Element | Range | Comment |
---|---|---|
Day | [01..31] | The value specified should not exceed this range. |
Month | [01..12] | The value specified should not exceed this range. |
Year | [0001..9999] | The value specified should not exceed this range. |
Available symbols in this field:
- Numbers
- Slash ( / )
- Hyphen ( - )
- Dot ( . )
Date/Time
This field type stores the timestamp measured in seconds.
In SimpleOne interface, it is displayed as an input field with a date and time picker.
Tip |
---|
See the Date and datetime columns article to learn more. |
The datetime can be written in the ISO 8601 format as shown below:
YYYY-MM-DD hh:mm:ss
Datetime elements are validated to meet the following criteria:
Element | Range | Comment |
---|---|---|
Second | [00..59] | The value specified should not exceed this range. |
Minute | [00..59] | The value specified should not exceed this range. |
Hour | [00..23] | The value specified should not exceed this range. |
Day | [01..31] | The value specified should not exceed this range. |
Month | [01..12] | The value specified should not exceed this range. |
Year | [1900..2099] | The value specified should not exceed this range. |
Date Time Specific
This field type stores the timestamp measured in seconds.
In SimpleOne interface, it is displayed as an input field with a date and time picker.
This field type is mainly used in Schedules. In contrast to the Date Time field type, this field type uses the UTC offset parameter defined in the system timezone.
Tip |
---|
See the Date and datetime columns article to learn more. |
The datetime can be written in the ISO 8601 format like shown below:
YYYY-MM-DD hh:mm:ss
Datetime elements are validated to meet the following criteria:
Element | Range | Comment |
---|---|---|
Second | [00..59] | The value specified should not exceed this range. |
Minute | [00..59] | The value specified should not exceed this range. |
Hour | [00..23] | The value specified should not exceed this range. |
Day | [01..31] | The value specified should not exceed this range. |
Month | [01..12] | The value specified should not exceed this range. |
Year | [1900..2099] | The value specified should not exceed this range. |
Document ID
This field type is used to store various IDs. Physically they are stored as UUID.
Expand | ||
---|---|---|
| ||
UUID is written as a sequence of hex numbers in lowercase, divided by a minus sign into several groups like this:
It is 32 digits and 128 bits total. When on a form, the field of this type is displayed as a reference field. It should contain a reference on a specified column in a specified table. To specify a reference, click on a string or on a magnifier icon
|
The validation criteria are listed below:
- An input value is validated that it is a string value.
- After that, validation is performed according to a predefined pattern like described in the Description column.
Expand | ||
---|---|---|
| ||
0229fa8a-bcbe-1f54-0163-45785d8a0001 |
Field Name
This field type is used to store a reference to column in the table and contains a list of columns in a referenced table.
To specify a reference, complete the steps below:
- Add this field on the form using the Form Layout functionality.
- Right-click on the field title and select Configure field item.
- Scroll down to the Type Specification tab and specify the referencing table column in the Dependent on Column field.
- Click Save or Save and Exit to save changes.
Image
This field type is used to store uploaded image files in the following formats: jpeg, png, gif, webp, bmp, svg, ico.
In SimpleOne interface, it is displayed as a file upload modal window.
List
This field type is physically implemented as a lengthless text string. It stores records IDs of the specified table. It is displayed as a list of record values (which are the references to the record form). It provides you the functionality of adding, previewing, and deleting records.
Tip |
---|
See the Reference columns article to learn more. |
The validation criteria are listed below:
- All elements must be separated by a comma.
Record Class
This field type is meant to signify the table to which the specified record relates.
Tip |
---|
See the Record Class article to learn more. |
999999999999999999].
Reference
This field type works like an external key and stores the record ID of the specified table. This table must be specified in the Reference ID. It is physically stored as Big Integer.
Tip |
---|
See the Reference columns article to learn more. |
Info |
---|
In order to limit the output when referencing to a field, please use Reference Qualifiers. |
Template
This field type allows storing a set of column names and their values in JSON format for all tables. Nested JSON format is used. On the first nesting level, the element numbers starting from 1 are used as keys.
Because the field type stores data pairs: column name ↔ value, it is commonly used on template forms. The field allows applying stored data to records created from templates.
The elements are objects in following format:
- 'key' − the column ID in the Columns (sys_db_column) dictionary
- 'value' − the column value.
This type of field requires populating the Dependent On Column field in the Type Specification tab with the appropriate table.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// |
используются |
следующие |
колонки |
справочника Пользователи: username, active, locked_out |
{ "1": { "156943341303994936": "new_user" }, "2": { "156943341308746896": "1" }, "3": { "155931135900001086": "0" } } |
Пусто значение поля:
Panel | |
---|---|
|
Time
This field type is used as a time storage. Timezone is not taken into account. The date is not stored. The size of the stored data – 8 bytes.
Tip |
---|
See the Date and datetime columns article to learn more. |
| |
[] |
Time
Этот тип поля используется для хранения времени, не учитывая часовой пояс. Дата не сохраняется. Размер данных – 8 байтов.
Image Added
Tip |
---|
Подробнее о полях читайте в статье Поля даты и времени. |
Время записается в ISO 8601 формате, как показано ниже:
чч:мм:сс
Элементы времени проверяются на соответствие следующим критериям:
Элемент | Диапазон | Комментарий |
---|---|---|
Секунда |
The time can be written in the ISO 8601 format as shown below:
HH:MM:SS
Time stamp elements are validated to meet the following criteria:
[00..59] |
The value specified should not exceed this range.
Указанное значение не должно превышать этот диапазон. | |
Минута | [00..59] |
The value specified should not exceed this range.
Указанное значение не должно превышать этот диапазон. | |
Час | [00..23] |
Указанное значение не должно превышать этот диапазон. |
Допустимо использование чисел и двоеточий ( : ).
Panel | ||
---|---|---|
| ||
11:00:54 |
Table of Contents | ||
---|---|---|
|