Skip to main content
All CollectionsData model
Property type expressions
Property type expressions

Overview of property type expressions that can be used in classic-gen data model.

Betty Blocks avatar
Written by Betty Blocks
Updated over a year ago

Warning!

You’re now reading a legacy document. The features described below are only usable within the classic generation environment.

Currently, Betty Blocks offers faster and more advanced options that are available in next-gen. So before you start working consider using expressions in our next-gen actions that will definitely speed up your workflow.


Besides the basic properties used in models, there are also ones called expressions. These values are automatically calculated by the platform whenever one of the dependent items is altered. For example, your Order model has a ‘total_price’ property which calculates the sum of all ordered products. If you add an extra product to the Order, the 'total_price' property would re-calculate. It is not possible to manually change its value.

Checkbox expression

This property is an expression property, so its value is automatically calculated and can't be manually changed. It is used for generating a Checkbox value (true or false) based on the expression entered in the Expression setting.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Date expression

Another property used to save a date using expressions when setting the dynamic value. Its value is automatically calculated and can't be manually changed. It is used for generating a Date value based on the expression entered in the Expression setting.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Format: Set a format for the date property's component. All date values will be saved in YYYY-MM-DD format, but the default format for display is DD-MM-YYYY.

Date time expression

Another property used to save a date with a timestamp. This one uses expressions to set the dynamic value: it is automatically calculated and can't be manually changed. This property is used for generating a Date time value based on the expression entered in the Expression setting.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Format: Set a format for the date time property's component. All date values will be saved in YYYY-MM-DD HH:MM:SS format, but the default format for display is DD-MM-YYYY HH:MM:SS.

Minutes expression

Another property to store time in minutes. Uses expressions when setting the dynamic time value: it is automatically calculated and can't be manually changed. This property is used for generating a Minutes value based on the expression entered in the Expression setting.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Number expression

The number property type that uses expressions to set the dynamic value. Its value is automatically calculated and can't be manually changed. It is used for generating a Number value based on the expression entered in the Expression setting.

Dynamic value and format are explained in the Number property type.

Number with decimal expression

As the previous property, this one is also used for saving numbers that may contain fractional/decimal components. It uses expressions to set the dynamic value: it is automatically calculated and can't be manually changed. It is used for generating a Number with a decimal value based on the expression entered in the Expression setting.

Dynamic value and format are explained in the Number property type.

Price expression

This property also holds numbers that are validated as a price in different currencies. The type only uses expressions to set the dynamic value: it is automatically calculated and can't be manually changed. It is used for generating a Price value based on the expression entered in the Expression setting.

Dynamic value, format and Advanced section are explained in the Price property type.

Text (multi line) expression

This property is used for saving large text values. All characters are accepted and saved as plain text. It only uses expressions to set the dynamic value: itis automatically calculated and can't be manually changed. It is used for generating a Text (multi line) value based on the expression entered in the Expression setting.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Text (single line) expression

This property is also used for saving texts up to 255 characters. It only uses expressions to set the dynamic value: it is automatically calculated and can't be manually changed. It is used for generating a Text (single line) value based on the expression entered in the Expression.

Dynamic value: Expression properties that can handle logic. The value of these properties is not set by users but can change depending on how the expression is evaluated.

Did this answer your question?