The next table presents the properties of the entity attribute element.

Property

Description

Optionality

Default value

Obs.

Name

Name of the attribute.

Mandatory

Attributen

You should change the name of the attribute to a suitable value.

See rules for naming elements.

Mandatory

Indicates whether the attribute is mandatory or optional.

Mandatory

Mandatory

To define an attribute as Optional, simply un-check this property.

Auto Number

Indicates whether the attribute value is generated by the database. The OutSystems Platform sets the generated value in this attribute after the record has been inserted in the database.

Optional

 

This property is only available for attributes of type Integer.

You can only have one attribute for which Auto Number is checked, per entity.

Data Type

Indicates the type of the attribute. Only basic data types such as Text or Integer are available.

Mandatory

 

The possible values are presented in a drop-down list. For more information, see available data types.

Since OutSystems Platform has its own data types, you should check how Database data types are translated into OutSystems' data types. Check the mapping for Oracle or SQL Server.

Default value

Default value that is used if no value for this attribute is provided in the eSpace that is using this action.

Optional

 

See About an Expression

Length

Size of the attribute.

Optional

 

This property is only available for Text and Decimal types. In the Decimal types, this property corresponds to the number of digits, including the decimal part. If the values for these data types are not specified, default values are used.

The rest of the data types have a fixed length.

Decimals

Number of decimal places.

Optional

 

This property is only available when the data type is Decimal and corresponds to the number of digits of the decimal part.

Description

Description of the parameter.

Optional

 

By default the description is empty, but you should provide a small description of the semantic of this parameter. The maximum allowed size for descriptions is 255 characters.

See Also

Entity Attributes | Attributes Editor