The attributes property of the client schema contains a configuration object with its properties.
Primary properties
The attribute data type. Creatio will use it when generating the view. The Terrasoft.DataValueType enumeration represents the available data types.
GUID | 0 |
TEXT | 1 |
INTEGER | 4 |
FLOAT | 5 |
MONEY | 6 |
DATE_TIME | 7 |
DATE | 8 |
TIME | 9 |
LOOKUP | 10 |
ENUM | 11 |
BOOLEAN | 12 |
BLOB | 13 |
IMAGE | 14 |
CUSTOM_OBJECT | 15 |
IMAGELOOKUP | 16 |
COLLECTION | 17 |
COLOR | 18 |
LOCALIZABLE_STRING | 19 |
ENTITY | 20 |
ENTITY_COLLECTION | 21 |
ENTITY_COLUMN_MAPPING_COLLECTION | 22 |
HASH_TEXT | 23 |
SECURE_TEXT | 24 |
FILE | 25 |
MAPPING | 26 |
SHORT_TEXT | 27 |
MEDIUM_TEXT | 28 |
MAXSIZE_TEXT | 29 |
LONG_TEXT | 30 |
FLOAT1 | 31 |
FLOAT2 | 32 |
FLOAT3 | 33 |
FLOAT4 | 34 |
LOCALIZABLE_PARAMETER_VALUES_LIST | 35 |
METADATA_TEXT | 36 |
STAGE_INDICATOR | 37 |
Column type. An optional parameter BaseViewModel uses internally. The Terrasoft.ViewModelColumnType enumeration represents the available column types.
ENTITY_COLUMN | 0 |
CALCULATED_COLUMN | 1 |
VIRTUAL_COLUMN | 2 |
RESOURCE_COLUMN | 3 |
Attribute value. Creatio sets the view model value to this parameter when the view model is created. The value attribute accepts numeric, string, and boolean values. If the attribute type implies the use of a lookup type value (array, object, collection, etc.), initialize its initial value using a method.
Additional properties
Attribute title.
The flag that marks the attribute as required.
Dependency on another attribute of the model. For example, set an attribute based on the value of another attribute. Use the property to create calculated fields.
The property that manages the lookup field properties. Learn more about using this parameter in a separate article: Filter the lookup field. This is a configuration object that can contain optional properties.
columns | An array of column names to add to a request in addition to the Id column and the primary display column. |
orders | An array of configuration objects that determine the data sorting. |
filter | The method that returns an instance of the Terrasoft.BaseFilter class or its descendant that will be applied to the request. Cannot be used combined with the filters property. |
filters | An array of filters (methods that return collections of the Terrasoft.FilterGroup class). Cannot be used combined with the filter property. |