I have the situation that I can have only max one record of a kind. So the situation is that at first there’s no record and you need to click add. Then after insert I want to disable add buttons and goback to the just added record.
Problem is that if I don’t do anything and you add a record the add button persists and will generate a duplicate key on the next hit.
I would like to be able to redir to the same application so it will show the just inserted record in save mode. But if I do that then the record is not stored.
How can I achieve this?