Problem:
I have a list view with records on a table. I can click a "new record" button which triggers a form to be loaded into a dialog (showformdialog) and start a transaction
This new record has a db managed PK and an obligatory FK. When the user clicks outside a field BEFORE a FK has been entered, the db immediately throws an exception (missing foreign key).
So 2 questions:
1) Why does it try to write to the db before a committransaction is given?
2) How can I prevent the recordsave from being triggered ( I tried attaching an method with "return" in it. Doesn't make a difference).
Any insights very much appreciated