I have an application in Delphi and I need that in this application when the user deletes a record, this record continues in the database, but is hidden in the system.
I have an application in Delphi and I need that in this application when the user deletes a record, this record continues in the database, but is hidden in the system.
You can apply what is known as logical exclusion:
In the application delete procedure run the command UPDATE
instead of DELETE
, changing the value of the "excluded" column to true
.
In the records list, consider only those that have the value of the 'excluded' column with the values NULL
and false
.