Backendless Support

Configuring default value for a data table column

As data objects are being saved or updated with the API requests, some properties of the objects may not have a value assigned to them. So that a default value may be necessary to be assigned for those properties. This is identical to how relational databases may have a default value for a column.

Configuring a default value for a column is very easy in Backendless.

It is possible to set this feature when a developer declare a column or after a column is already created.

The popup window for creating a new column includes a field where the default value can be set: 

Alternatively, when a column already exists in a table schema, there is a field which displays and allows to edit the default value: 

Once a default value is assigned to a column, it becomes immediately effective. When an object is saved or updated does not have a value for a property corresponding to the column, Backendless inserts the default value.

Review related topic:

Is article helpful?