This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Will not save more than one combobox in a form

Tags: None
(comma "," separated)
hdube
Registered Member
Posts
2
Karma
0
I am trying to design a database where I would add/edit data using a form which uses three combo boxes.

Firstly I created four tables :

The first table : « surname » has two fields : 1) « id1 » (primary key), 2) « name_f » (text)

The second table : « city » has two fields : 1) « id2 » (primary key), 2) « city_f » (text)

The third table : « zip » has two fields : 1) « id3 » (primary key), 2) « zip_f » (text)

The fourth table :« clients » has four fields : 1) « id » (primary key), 2) « name » (integer), 3) « City » (integer), 4) « zip » (integer)

In addition, the three last fields of the table « clients » have been further set as :

The field « name »'s record source is the table « surname », it's bound column is « id1 » and it's visible column is « name_f »

The field « city »'s record source is the table « city », it's bound column is « id2 » and it's visible column is « city_f »

The field « zip »'s record source is the table « zip », it's bound column is « id3 » and it's visible column is « zip_f »


Once these four tables were defined I made a form (data source : « client ») with three combo boxes : 1) combobox1 (widget data source : « name »), 2) combobox2 (widget data source : « city »), 1) combobox3 (widget data source : « zip »).

Now, the problem I have is when I edit or append to this table (« clients ») with this new form, it only saves the second field. The other fields stay unchanged even if I put a new value in using the combo box. It would seem that there should be a way that when I hit the save button after I edit these three comboboxes that the new values should be saved on all three of these fields.

What am I doing wrong?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Dear hdube, thanks for the detailed explanation. I will try to reproduce this case and get back to you.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
hdube
Registered Member
Posts
2
Karma
0
Dear jstaniek,

This problem occures in Kexi 2.4.0 running under Ubuntu 12.04 LTS.

hdube
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Thanks. As always, if you send me sample database (staniek @kde.org), the fix could be faster.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]