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

Kexi form doesn't commit to db

Tags: None
(comma "," separated)
mheyes
Registered Member
Posts
5
Karma
0

Kexi form doesn't commit to db

Mon Dec 09, 2019 10:55 pm
When I add records to my form the the table isn't updated when I save the records. But if I close Kexi and reopen it the records are in the table. Looks like there's a missing commit somewhere? Is this normal behavior for Kexi?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: Kexi form doesn't commit to db

Mon Dec 09, 2019 11:32 pm
Hi, Something specific must have happened in your db so it might be required to inspect it (or any similar minimal one that exposes the same issue) to see why the update is not visible immediately.

If it does not commit you won't see the data but there is a commit since you see the change.

Cheers.


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
mheyes
Registered Member
Posts
5
Karma
0

Re: Kexi form doesn't commit to db

Tue Dec 10, 2019 12:50 am
Thanks for your reply. The project is using the builtin SQLite db server. How should I inspect, or what should I be looking for? The commit doesn't seem to happen when I save the new record, when it should, but after I close and reopen the project the commit shows up.
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: Kexi form doesn't commit to db

Tue Dec 10, 2019 7:49 am
Hello, I'd know your KEXI version first. If you can make a copy of your database and send me privately I can inspect it. You can strip it down by opening e.g. in SQLItebrowser and removing all tables but the ones that will be tested. You can also remove all records first.


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
mheyes
Registered Member
Posts
5
Karma
0

Re: Kexi form doesn't commit to db

Tue Dec 10, 2019 9:28 pm
I sent a pm with that info and a copy of the database earlier today. Thanks again!
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: Kexi form doesn't commit to db

Tue Dec 10, 2019 11:32 pm
OK tried it, and it works (KEXI 3.2), both entering new records in the table and form. Could you tell me 1. if entering new records into the table works for you and 2. how do enter and accept records in the form step by step?


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
mheyes
Registered Member
Posts
5
Karma
0

Re: Kexi form doesn't commit to db

Wed Dec 11, 2019 1:26 pm
Glad it works there, now just need to see what I'm doing wrong. I see a problem first with entering data directly into table and then having it show up in the form. Let's see if I'm doing something wrong there first, maybe that will address the form entry problem. This is what I did, step-by-step:

1. Open project without any records. In table view, enter data in first record, then hit shift-enter twice (or Save Record tab). Next record appears. Enter data for three records, save, then change to form view.

2. Check form view, all records show in form as expected.

3. return to table view, enter fourth record, then shift-enter twice. Change back to form view.

4. in form view, new record not present in form. First three records are there still, and Record count at bottom of blank form shows “< 4 of 3 >”. Record 4 has empty fields in form view.

5. close project with Kexi > Close. Then reopen project. Open form view, record 4 now there.

Record 4 should be in form view without having to close? Or am I doing something wrong here?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: Kexi form doesn't commit to db

Wed Dec 11, 2019 2:32 pm
Quick fact. Forms does not refresh automatically the contents when you also enter data using other forms for the same table or in the table view directly. The same goes in opposite way: in table view when you enter in forms. To refresh you can close and open respective form or table and records will be visible. This is inconvenient se we plan to deliver a "Refresh" feature.


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
mheyes
Registered Member
Posts
5
Karma
0

Re: Kexi form doesn't commit to db

Wed Dec 11, 2019 3:05 pm
Ah, ok, so what I'm seeing is a known issue. I didn't know that. Thanks!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]