Document Modelling

Number fields

Model number fields in Sophora.

Double

Floating-Point Number

It is recommended to use the input field type Floating-Point Number for properties of the type double. It depends on the language setting of your DeskClient, if you have to use a comma or a period as delimiter between a number's integer and fractional parts.

You may configure a default value, a validation expression and define whether a structure value shall be inherited. If you use the default configuration, none of the three will be applied.

Text

You can configure a double property as text. This way, you can add supplements as a character counter to the field.

Long

Integer

Because a field of the type long may only contain integer values, the most common way is to configure it as such - an integer. Additionally, you can add a validation expression (perhaps because the number should always be greater than zero) and a default value in the property configuration.

Text

You can configure a long value as text, e.g. if you want to insert a placeholder text into the field.

Scheduling

You can use a long field for time scheduling, which is why you can select Scheduling as an input field type. However, this only works for a specific small set of properties. Therefore, you have to look for detailed information here.

Selection Value

You can configure a long field as a selection value. Of course, this only works if the keys of the select value provider (e.g. the keys of a select value document) are integers.

Last modified on 9/21/22

The content of this page is licensed under the CC BY 4.0 License. Code samples are licensed under the MIT License.

Icon