Rename a primary-key value
A key value can be changed like any other value, but the table reads it differently: changing a key does not modify a record, it renames it. The record keeps its data, and the relations that point at it follow the new key.
Before you start
- Know which fields are the primary key: they are always the first columns of the grid and cannot be cleared.
- Know the new key value, and that no other record already uses it.
Rename a record by editing its key
- Open the table and find the record in the grid.
- Select the cell of the key field — the column named after the field, usually the first one.
- Type the new key value and leave the cell.
- The record is renamed, and the grid shows it under its new key.

What happens
The record is renamed in place: its data stays, and the relations that point at it follow the new key. An empty key is refused with "A primary key field cannot be empty."; a key that another record already has is refused with "A record with the key %1 already exists."; a table whose records have more than 15 key fields cannot be renamed here and says "Records of table %1 have more than 15 key fields and cannot be renamed here." The log records the rename with the old and the new key.
Example
The preset 10005, name JD, description Adatum Corporation, opens table 102 with the table filter ITEM-001. The user corrects the key value of the one record the filter selected; the record appears under its new key, and the values of its other fields are as they were.
If something goes wrong
| What you see | Why | What to do |
|---|---|---|
| "A primary key field cannot be empty." | The key value was cleared. | Type a key value. |
| "A record with the key %1 already exists." | Another record already has that key. | Choose a key that is not in use. |
| "Records of table %1 have more than 15 key fields and cannot be renamed here." | The table has a very wide key. | Change the key in a page of the table instead. |
| The key column is not in the grid | The field selection left it out. | Key fields are always shown; read the table again. |
