Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
No bound choices
Field types that do not offer choice options to select from.
Field type | Description | Scalar type | Value type in script | Length, example, or validation criteria |
---|---|---|---|---|
Big Integer |
This is a numeric field type used |
to store large numbers. |
The size of the data stored is |
8 bytes. In SimpleOne, it is displayed as an input field with a numeric value |
. |
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.
Image Removed
Type of the stored data - boolean.
Char
This field type is used for storing symbolic data (for example, hash, ID, UUID, etc). Size of the data stored is 32 bytes. In SimpleOne interface, it is displayed as an input field with the symbolic value in it.
Type of the stored data - char.
Choice
This field type implements the functionality of the choices. For this, supporting fields in the sys_db_column column were implemented. The field stores a string 80 symbols length that has varchar type. In SimpleOne interface, it is displayed as a drop-down list. Configuration settings of the items to be selected are located in the sys_choice table. Various 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).
Info | ||
---|---|---|
| ||
Hint: 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. |
Color
This field type is intended to keep and share information about the system color or the color of the interface element. This field type is used, for example, in the Rule Styles. Type of the data stored - varchar, size of the data stored- 40 symbols.
Conditions
This field type is used to build AND/OR filters. It stores text (a lengthless string). In SimpleOne interface, it is displayed as a filter configuration widget. It stores JSON condition inside.
Code Block | ||||
---|---|---|---|---|
| ||||
{“condition”:[[[{“field”:“\”incident\“.\“description\“”,“operator”:“is not empty”,“values”:[],“type”:“string”,“columnId”:“190",“dotWalkingPath”:“190",“tableName”:“incident”}]]],“orderBy”:[],“tableName”:“incident”} |
Date
This field type stores the date in the following format: YYYY-MM-DD to within 1 day and without specifying the time of the day. Size of the data stored is four bytes. Type of the stored data - date.
Date/Time
This field type stores inside the timestamp measured in seconds. It shows how many seconds have been passed since 00:00:00 UTC 01 Jan 1970 (also known as Unix time or POSIX time). In SimpleOne interface, it is displayed as an input field with a date and time picker. The example of the date and time displayed: 2019-04-23 05:34:15.
Type of the stored data - timestamp.
Days of week
This field type is used to operate with days of the week. In SimpleOne interface, it is displayed as seven checkboxes. The week beginning is always Sunday. The information is stored as a decimal number. It is formed like this:
- Every checkbox is stored as 1 bit. Also, the status of this bit is stored (0/1, checked or not);
- So the week is the binary number that represents the sum of these bits;
- When saving in the database proceeds, this binary number has to be converted into decimal in advance.
It is stored as Small Integer.
Image Removed
Type of the stored data - int2.
Decimal
This field type of a variable length is implementing storage of the miscellaneous numerical data. Type of the stored data - decimal.
Document ID
This field type is used to store various ID. Physically they are stored as UUID.
UUID is written as a sequence of hex numbers in lowercase, divided by a minus sign into several groups like this:
- Eight-digit group;
- Three groups of four digits each;
- 12-digit group.
It is 32 digits and 128 bits total.
Example: 00000000-0040-0000-0000-000000000008.
You can see it on the record create/edit page. It is displayed as a text input field + dictionary button. When pressed, then modal with two fields are shown:
- drop-down list with the tables;
- field with a dictionary with the ability to select a table entry.
Type of the data stored - uuid.
Duration
This field type stores time interval in milliseconds between two points specified. In SimpleOne interface, it is displayed as an amount of the days, hours, minutes and seconds.
Type of the stored data - int8.
Due Date
This field type stores inside the timestamp measured in seconds. It shows how many seconds have been passed since 00:00:00 UTC 01 Jan 1970 (also known as Unix time or POSIX time). In SimpleOne interface, it is displayed as an input field with a date and time picker. The example of the date and time displayed: 2019-04-23 05:34:15.
Type of the stored data - timestamp.
Encrypted Password
This field type is used to provide secure password storage in the database, with the decoding ability (2-way encryption).
This field type is physically implemented as a string 128 symbols length which has varchar type,
Before saving, password encodes basing on one of the encryption algorithm and a random string, Before usage, decoding performs.
Field Name
This field is always paired up with the reference field that is referring to the sys_db_table table. For example:
- The field with this type is named Columns;
- The field it depends on is named Tables.
If the data in the Table field is changed, then into the Columns field will be loaded columns from the Table table.
Size of the stored data - eight bytes.
Float
This field type implements a floating point number. Type of the stored data - float4.
Html
This field type is stored as text and implemented as 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 able to edit and transform.
Image
This field type is used to store uploaded image files. In SimpleOne interface, it is displayed as a file upload modal window.
Type of the stored data - varchar.
Integer
This is a numeric field type. Size of the stored data - four bytes. Type of the data stored - int4. The range of numbers that can be stored - (-2147483648 .. +2147483647).
Journal Input
This field type is used to operate with the comment widget for the intermediate data storage when the comments have been adding. It is implemented as a text-area with a placeholder of the field title. Routinely, it stores NULL inside. When the comment is adding, the field value saving the following data to the sys_activities_stream_field table:
- reference to the commented record;
- reference to the table containing this field;
- the comment itself;
- commentator name (the user who has added the comment);
- field name.
After the comment saving the field value becomes NULL again.
Type of the stored data - text.
Json
This field type is physically stored as a JSON. Example:
Code Block | ||||
---|---|---|---|---|
| ||||
{ “name”:“John”, “age”:30, “cars”: { “car1”:“Ford”, “car2”:“BMW”, “car3”:“Fiat” } } |
Type of the stored data - jsonb.
List
This field type is physically implemented as a lengthless text string. It stores ID's of the records of the specified table, comma-separated. It is displayed as a list of record values (which are the references to the record edit page), separated by the comma. When the field is unlocked, then the multiple-selecting function is available. It provides you the functionality of the adding, previewing and deleting records.
Password
This field type is physically implemented as a string 255 symbols length which has varchar type, It is displayed as an input field with password type.
Percent Complete
This field type is used to show the progress of task completion. Type of the data storage - decimal. In SimpleOne interface, it is displayed as an input field.
Phone
This field type is physically implemented as a string 15 symbols length. Type of the data stored - varchar. It stores a phone number inside, In SimpleOne interface, it is displayed as an input field with the phone number.
Example: +74952128506.
Reference
This field type works like external key and stores the ID of the record of the specified table. This table must be specified in the Reference ID. It is physically stored as Big Integer.
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 the browser) .
Small Integer
This is numeric field type. Size of the data stored - two bytes. Type of the stored data - int2. The range of numbers that can be stored - (-32768 .. +32767).
String
This field type is physically implemented as a string 255 symbols length. Type of the stored data - varchar. In SimpleOne interface, it is displayed as a text input field,
Template
This field type is use to predefine the sets of values. It stores a lengthless text string. Templates are intended to create objects with a pre-filled set of fields. They are stored in the Templates (sys_template) dictionary and can be used to create typical records according to these templates using the SimpleTemplate server-side API class.
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.
Time
This field type is used for time storage. Timezone is not taken into account. The date is not stored. Size of the stored data - eight bytes. Type of the stored data - time. Format of the time storage is HH:MM:SS.
Translated Text
This field type allows the same field to to display different content based on the user language. Type of the data stored - varchar. To learn more about this field type, please refer to the Translated Text field article.
URL
This field type is used to store URL. Physically it is stored as a string 255 symbols length. Type of the stored data - varchar.
int8 | number |
| |||||||||||||
Days of Week | This field is displayed as a drop-down list with checkboxes presenting the days of the week: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. Several 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 the week is assigned a value: Monday = 1 For example, if Tuesday (2) and Wednesday (4) are selected, the field value is 6. | int2 | number | Minimum value is 0 (no days are selected). Maximum value of is 127 (all days are selected).
| |||||||||||
Decimal | This field type implements numbers with up to two digits after the decimal point. | decimal | number |
| |||||||||||
Duration | This field type is used to calculate the duration between two events in milliseconds. It stores an integer number. | int8 | number | Validation processing:
| |||||||||||
Encrypted Password | This field type is used to provide secure password storage in a database, with the decoding ability (two-way encryption). After entering a password and saving the record, the field becomes empty, the password is no longer available on the record form. | varchar | string | This field can contain any characters. The length is limited to 255 characters.
| |||||||||||
Float | This field type implements a floating-point number. | float4 | number | Validation criteria:
| |||||||||||
HTML | This field type is implemented as a rich text widget. There are various settings displayed as HTML tags in a 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.
Changes made in one modes are displayed in the other, and vice versa. | text | string | This field can contain any characters and is lengthless unless limited by the Max length attribute.
| |||||||||||
Integer | This is a numeric field type. The size of the stored data is 4 bytes. | int4 | number | The value specified should not exceed this range: [-2147483648 ... +2147483647].
| |||||||||||
Journal Input | This field type is used to operate with the comment widget. Due to its specifics, the field cannot be read only. It is implemented as a text area with a placeholder or a field title. There are two ways to leave a comment using the Journal Input column type:
When comments are added, they are stored in two tables:
| text | string | This field can be used to submit any characters and is lengthless unless limited by the Max length attribute. In the database, a journal input column always contains an empty string:
| |||||||||||
JSON | This field type is physically stored as JSON.
| jsonb | string | JSON type fields are validated 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. After entering a password and saving the record, the field becomes empty, the password is no longer available on the record form. | varchar | string | This field can contain any characters. The length is limited to 255 characters.
| |||||||||||
Percent Complete | This field type is used to display a task completion rate. | decimal | number | Validation criteria:
| |||||||||||
Phone | This field stores phone numbers. In the SimpleOne interface, it is displayed as an input field with the phone number.
| varchar | string | Validation criteria:
| |||||||||||
Script
| This field type is physically implemented as a lengthless text string. In the interface, it is displayed as a CodeMirror widget (JS component that provides ability of the code editing in a browser).
| text | string | This field can contain any characters and is lengthless. It can be limited by the Max length attribute. Automatic script validation during form submission is configured for some fields of the script type.
| |||||||||||
Small Integer | This is a numeric field type. The size of the data stored is 2 bytes. | int2 | number | The value specified should not exceed this range: [-32768 ... +32767].
| |||||||||||
String | This field type is physically implemented as a string 255 characters long. In the interface, it is displayed as a text input field.
| varchar | string | This field can contain any characters and is lengthless. It can be limited by the Max length attribute.
| |||||||||||
Text | This field type is physically implemented as a lengthless text string. The memory is allocated dynamically when processing the field. In the interface, it is displayed as a textarea.
| text | string | This field can contain any characters and is lengthless. It can be 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.
| varchar | string | This field can contain any characters and is lengthless. It can be limited by the Max length attribute.
| |||||||||||
URL | This field type is used to store a URL. | varchar | string | This field can contain any characters. The length is limited to 1024 characters.
|
Choice-like fields
Field types that offer choice options to a user and can be filled by selecting a value.
Field type | Description | Scalar type | Value type in script | Length, example, or validation criteria | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
True/False | This field type implements binary logic (true or false, 1 or 0). In the interface, it is displayed as a checkbox. You can change its default value to true or false by selectiong or clearing it. | boolean | boolean |
| ||||||||||||||||||||||||||||
Choice | This field type implements the choice functionality. In the interface, it is displayed as a drop-down list.
| varchar | string | This field can contain any characters. If the string length is not set, it is limited to 80 characters.
| ||||||||||||||||||||||||||||
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, in the Style Rules. | varchar | string | 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.
| ||||||||||||||||||||||||||||
Conditions | This field type is used to build AND/OR filters. In the interface, it is displayed as a filter configuration widget. It stores JSON conditions. | text | string | The validation criteria are:
| ||||||||||||||||||||||||||||
Date | This field type stores the date in the following YYYY-MM-DD format, within one day, and does not specify the time. The size of the data stored is 4 bytes. In the interface, it is displayed as an input field with a date picker.
| date | string | A date must be in the ISO 8601 format:
Date elements are validated to meet the following criteria:
Available characters in this field:
| ||||||||||||||||||||||||||||
Date/Time | This field type stores the timestamp measured in seconds. In the interface, it is displayed as an input field with a date and time picker.
| timestamp | string | 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:
| ||||||||||||||||||||||||||||
Date/Time Specific | This field type stores the timestamp measured in seconds. In the 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.
| timestamp | string | The datetime can be written in ISO 8601 format like shown below: YYYY-MM-DD hh:mm:ss Datetime elements are validated to meet the following criteria:
| ||||||||||||||||||||||||||||
Document ID | This field type is used to store various IDs as universally unique identifiers (UUID).
| uuid | string | Validation criteria:
| ||||||||||||||||||||||||||||
Field Name | This field type is used to store a reference to a column in a particular table and contains a list of columns in the referenced table. To specify a reference, complete the steps below:
| int8 | string | The input string is validated to ensure that it is a string value.
| ||||||||||||||||||||||||||||
Image | This field type is used to store uploaded image files in the following formats: .jpeg, .png, .gif, .webp, .bmp, .svg, .ico. In the interface, it is displayed as a file upload modal window. | int8 | string | The value specified should not exceed this range: [9223372036854775807 ... 9223372036854775806].
| ||||||||||||||||||||||||||||
List | This field type can contain a text string of unlimited length. It stores record IDs of the specified table and is displayed as a list of record values (which are the references to the record form). It provides you with the functionality of adding, previewing, and deleting records.
| text | string | Validation criteria:
| ||||||||||||||||||||||||||||
Record Class | This field type is used to label the table to which the specified record is related. The Record Class field is created for a table once a newly inherited table is created for it. Initially, when creating a new root table (without any parents), the table will not have this field. Type of the stored data is ID. The size of the stored data is 8 bytes. | int8 | string | The value specified should not exceed this range: [100000000000000000 .. Example of usage:
| ||||||||||||||||||||||||||||
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 field. It is stored as Big Integer. In order to limit the output when referencing a field, use the reference qualifiers.
| int8 | string | You can use this range of whole big integers: [-9223372036854775808 … 9223372036854775807]
| ||||||||||||||||||||||||||||
Template | This field type allows for 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 in template forms. You can use a range of whole bug integers if required. The field allows for applying stored data to records created from templates. The elements are objects in the following format:
| json | string |
Empty field value:
| ||||||||||||||||||||||||||||
Time | This field type is used as a time storage. The timezone is not taken into account. The date is not stored. The size of the stored data is 8 bytes.
| time | string | 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:
The allowed symbols are numbers and a colon ( : ).
|
Table of Contents | ||||
---|---|---|---|---|
| ||||
Table of Contents | ||||
|