Handling null values by setting a default value
It is possible that your calculations will sometimes try to include attributes for which no value has been set. If an attribute has no value (that is, its value is null), the calculation will usually fail. The easiest way of avoiding this happening is to set a default value for any attributes used in calculations.
You can specify default values for attributes of the following data types: Boolean, Decimal, Int16, and Int32.
To set a default value for an attribute:
- In Object Designer, open the required business object.
- In the Attributes tree, select the attribute that you want to set a default value for.
- In the Properties grid, alongside Default Value, type the value that you want to be used if no value has been set specifically, then click .