This example demonstrates the validation of a unique key in a form.
Creating a Form
Note:In case you have any doubts about how to create a form, go to: Creating a new form
1. Create a new simple form application based on the departments table.
2. In the application menu, click on Unique Key.
3. To define a key, select the deptname field on the left side and click on Add.
It is also possible to use a composite key (more than one field for the key), press CTRL and click on the desired fields, and then click on Add to create a composite key.
4. Click on the “Run application” button.