Issue 6118 - Fields in db forms are sometimes not updated
Summary: Fields in db forms are sometimes not updated
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC All
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: ocke.janssen
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-25 13:12 UTC by gissi
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
This is the data I use. (29.38 KB, application/octet-stream)
2002-10-16 08:20 UTC, gissi
no flags Details
this is the form I use, created with the wizard (8.35 KB, application/octet-stream)
2002-10-16 08:21 UTC, gissi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description gissi 2002-06-25 13:12:48 UTC
I create a .dbf database.
Then, with autopilot, I create a form to display its contents.
I open the form.
I scroll the records of the database.
Some of the data fields are not correctly updated.
Passing from record n to record n+1 some fields continue to display the data of
record n instead of inserting the data of record n+1.
This happens often when the concerned field of record n+1 is empty.
This is a rather nasty bug as it renders forms (almost) useless.

I am ready to send the files if someone asks for.
Many thanks for you work on ooo.
Comment 1 Frank Schönheit 2002-07-10 13:39:23 UTC
Emanuele,

files would indeed help. I do not know of such a behaviour, I assume
there is something special about your files. If they do not contain
sensitive data or such, do you mind attaching them to this issue here?

Thanks
Frank
Comment 2 Frank Schönheit 2002-10-16 07:17:33 UTC
Emanuele,

can you please give some more info which could help to reproduce this?
table structure, data in the tables, and such? Or the files which you
are using?

Thanks
Frank
Comment 3 gissi 2002-10-16 08:20:18 UTC
Created attachment 3189 [details]
This is the data I use.
Comment 4 gissi 2002-10-16 08:21:20 UTC
Created attachment 3190 [details]
this is the form I use, created with the wizard
Comment 5 gissi 2002-10-16 08:30:28 UTC
This is what I done:
1) I registered the data source, type dbase, IBMPC 850 DOS,
tables indirizzi
2) I created the attached form with the form wizard
3) When in the form, if you press "next record" (>) button and
"previous record" (<) button several times you will notice
that the field N1 is seldom not updated and
remains "Consorzio Gorgovovo" instead of
showing "Consorzio Intercomunale Servizi".

This behaviour exists also with ODBC data sources.

I think it's clear that such a bug render forms unusable
for a professional use! 
Comment 6 Frank Schönheit 2002-10-16 08:42:43 UTC
(wrote the following before your most recent comment. Will try what
you described next.)

Hmm. Emanuele, I cannot reproduce this with the files you gave
(thanks) - I created a data source named indirizzi pointing to the
location of the dBase file, and opened the form. Traveling through it
seems to work perfectly - I always see the proper data. I tested this
in OOo 1.0 and 1.0.1 - successfully.

Do you have any more information? Do you do something different?

The only strange thing I noticed is that the sxw document you attached
did contain data in all controls except the first one. This means that
at the very moment the document was saved, the controls where not
(properly) bound to a table field. [1] But this would mean that all
these controls did not work (mean not change at all when traveling)
for you. Did they?

Frank

[1] In general, control data is saved in the file if and only if the
control is not properly bound - this is because if it is bound, the
data is considered to be "saved" in ther bound field.
Comment 7 Frank Schönheit 2002-10-16 08:47:56 UTC
Indeed! I reproduced it in OOo 1.0.
Ouch! Very bad! (And very strange.) Have to try other versions.
Comment 8 Frank Schönheit 2002-10-16 09:10:26 UTC
reproduced in OOo 1.0.1, too.
In the most recent inhouse builds, I even had a situation where simple
traveling through the records changed the data - on record 2, the data
of record 3 was displayed, and when traveling back to record 1, the
data of record 3 was _written_ into record 2. This is indeed severe!

I change the OS to "all" as I reproduced it on windows, too.
Comment 9 Frank Schönheit 2002-10-16 09:13:30 UTC
Emanuele, can you please verify or falsify that the problem vanishes
when the form document is reloaded? I was able to reproduce it with
newly created forms, but not after closing and re-opening, or simply
reloading it.
Comment 10 Frank Schönheit 2002-10-16 09:21:00 UTC
accepting
Comment 11 Frank Schönheit 2002-10-16 11:26:14 UTC
Ocke, please look at this. It seems that the control does not get a
propertyChanged notification for the column they are listening at.
Comment 12 Frank Schönheit 2002-10-16 12:14:45 UTC
3 bugs:
* One is in the graphics system layer, in VCL, this is submitted as
issue 8399
* One is covered by issue 2817
* One is fixed by Ocke in the DBA code and has good chances for OOo 1.0.2
Comment 13 Frank Schönheit 2002-10-16 12:17:23 UTC
Emanuele, as a workaround, you may want to unlimit the text length for
the controls. The auto pilot creates text controls which's input
length is limited to 30 characters, no matter of what the column
length of the underlying table is (this is covered by issue 6235). If
you unlimit the text length, the effect will perhaps not completely
vanish, but at least happen much less.
Comment 14 gissi 2002-10-17 07:51:53 UTC
I confirm. Reloading the document (the day after, probably sleeping
on it helps? ;-) makes the bug disappear.

[OT] Thanks a lot for your daily work on OOo, it's really wonderful.
Our business depends on you!
Comment 15 ocke.janssen 2002-10-18 11:13:43 UTC
Fixed in next version.
Comment 16 ocke.janssen 2002-12-13 10:06:42 UTC
close
Comment 17 hans_werner67 2004-02-02 12:10:43 UTC
change subcomponent to 'none'