Difference between revisions of "Features/Duplicate prevention"

From TempusServa wiki
Jump to navigation Jump to search
Line 5: Line 5:


== How to do ==
== How to do ==
To prevent duplications when records are created, the entity needs to be set up right. Either a single field or a combination of fields need to be designated as being a unique key, meaning that if you attempt to create another record with the same combination of fields, you will be prevented form doing so. This can be some field with inherently unique data or for example the combination of a date and a name, where the chance of another record sharing the same date and name is considered extremely unlikely.
To set a field of an entity to be a unique key, go to that record in the back-end
* Entity: Check for duplicates
* Entity: Check for duplicates
* Field: Is part of a unique key
* Field: Is part of a unique key


Note checks realtime when entering data
Note checks realtime when entering data

Revision as of 16:49, 24 August 2023

What it is

Example:

 If you are adding a record to an entity, it would be annoying to later find out that the record already exists. Now you have two records with the same data, but with different DataIDs. To prevent this there should be some part of the data in the record that is impossible to exist in another record. An example of this would be the social security number of a person. If you are adding a record of a person whose SSN already exists in the system, then the person is certainly a duplicate.

How to do

To prevent duplications when records are created, the entity needs to be set up right. Either a single field or a combination of fields need to be designated as being a unique key, meaning that if you attempt to create another record with the same combination of fields, you will be prevented form doing so. This can be some field with inherently unique data or for example the combination of a date and a name, where the chance of another record sharing the same date and name is considered extremely unlikely.

To set a field of an entity to be a unique key, go to that record in the back-end


  • Entity: Check for duplicates
  • Field: Is part of a unique key

Note checks realtime when entering data