Apache OpenOffice (AOO) Bugzilla – Issue 59846
New record in a subform is not linked to the form record (as Access does)
Last modified: 2017-05-20 10:47:59 UTC
Please, follow with the included example test2.odb 1) Create a new db (internal db engine) 2) Create two tables (book, writer) as in the included example test2.odb 3) Create the 1:n relation: writerId -> bookWriter 4) Create a form and its subform with the wizard (fWriter) The connected fields are writer.writerId (master), book.bookWriter (slave) 5) Enter a new book record in the subform for the record writerId=1 (Giovanni Pascoli) The foreign key "book.bookWriter" does not default to writer.writerId=1, it defaults to 0. So the subform creates a new record that is not connected with the record displayed in the form. In MSAccess the foreign key defaults to the connected value from the form. I humbly think this would be the right choice. Or, did I lose something? (Thanks for OO.o 2, it's my daily tool!)
Created attachment 32747 [details] Example of a simple subform
Created attachment 32749 [details] I am astonished. This DB works as it should!!! I could not find any difference in settings...
I have duplicated the problem in a different test database. The issue seems to be only when type BIGINT is used with IDENTITY for an auto generated PK.
Hi, I can reproduce this, reassign it to the right developer and set target. Bye Marc
Created attachment 73603
Reset assigne to the default "issues@openoffice.apache.org".