Hi!
Every new records can be accomodated by a set of mandatory values, you should generate id, if you want - keep it invisible.
It should behave like a normal field value, check carefully sequence of events.
Also very useful thing - create small test project, do things there, see difference...