You can define constraints using the Constraints tab located in the C1ViewSetDesignerForm. To define a constraint expression for the UnitPrice field of the Products table, perform the following tasks:
Return newValue > 0
OR
Click the Expression Builder button to open the Expression Builder dialog box:
Select the greater than operator and enter 0 for the Value. Click OK to close the dialog box.
UnitPrice must be a positive number
If the user attempts to enter a negative number in the UnitPrice column of the Products grid, the following error message appears:
Negative numbers are not allowed in accordance with the constraint we defined for the Products.UnitPrice field.