google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

DataBrowser does not display an added row or save all columns for an added row #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Gambas 3.2.1. Ubuntu Lucid 64 bit.GTK+. Gnome.

I select a country of Italy. I click Centre Maintenance button. I click (on the 
displayed FCentreMaintenance form) the New icon (within DataBrowserCentre). I 
enter Rome (for Centre) and 4 (for Country Id). I click the Save icon (within 
DataBrowserCentre). The window does not show the added Rome row. I then Exit 
the FCentreMaintenance form. I return to the FCentreMaintenance form and it 
still does not show the added Rome row. I check the centre table using SQLite 
Manager and the Rome row is there but with country_id set null/blank. 

Original issue reported on code.google.com by john.aaron.rose@gmail.com on 21 Aug 2012 at 8:53

GoogleCodeExporter commented 9 years ago
Sorry, I forgot to attach project & database.

Original comment by john.aaron.rose@gmail.com on 21 Aug 2012 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
This is the normal behaviour, you must embed DataSource controls to reflect the 
table relationship, and you must ensure that foreign keys have exactly the same 
name as original primary keys.

See my answer on the mailing-list.

Original comment by benoit.m...@gmail.com on 22 Aug 2012 at 10:02