Issue 109081 - Drop down menus do not display values/erase on focus
Summary: Drop down menus do not display values/erase on focus
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 3.2 RC5
Hardware: PC Windows XP
: P2 Trivial with 1 vote (vote)
Target Milestone: OOo 3.2.1
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
: 110274 (view as issue list)
Depends on:
Blocks:
 
Reported: 2010-02-09 14:21 UTC by steven
Modified: 2017-05-20 10:24 UTC (History)
2 users (show)

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


Attachments
Sample file showing OOo 3.2 form bug (153.52 KB, text/plain)
2010-02-11 17:41 UTC, steven
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description steven 2010-02-09 14:21:39 UTC
When using a form in Base (OOo 3.2 RC5, but this bug also appears in all prior
release candidates for 3.2) the values of dropdown menus are not shown after
focuc is removed. Further, when focus is first put onto one of these menus, the
value is apparently set to null until a new selection is made. This means that
if you tab from field to field, you literally erase the value of each dropdown
field to which you tab.

In the database I am using, the field values are drawn from tables. The syntax
in the LIST CONTENT field looks like this for one such field:

SELECT "CaseType", "ID" FROM "CaseTypes" "CaseTypes" 

It looks like this for another:

select "DispDesc", "ID" from "DispositionTypes"

Both work perfectly well in OOo 3.1 (i.e., the values are always shown and they
are not reset as soon as you tab onto the field) but create the problems
described above in OOo 3.2.
Comment 1 drewjensen.inbox 2010-02-10 18:27:31 UTC
Could not reproduce using Ubuntu, 3.2_RC5, embedded database
w/ check on xp to be sure

@steven This is an embedded database or a mysql?
Comment 2 steven 2010-02-10 22:52:29 UTC
It's neither. It's a HSQL database using the Java connector.

I do have an embedded version, but I haven't tried that one in OOo 3.2 RC5 yet.
I'll try to remember to do so when I'm back in the office tomorrow.
Comment 3 steven 2010-02-11 14:08:27 UTC
Checked it this morning with the embedded version of the same database, and I
get the same problem. This is on a Windows XP SP3 box. I also confirmed that
both versions of the database work just peachy in OOo 3.1 and in StarOffice 8.
Comment 4 drewjensen.inbox 2010-02-11 14:14:05 UTC
Checked with XP (sp3), 3.2 RC5

I can not reproduce this problem with list box or combo box controls.

Comment 5 steven 2010-02-11 16:12:09 UTC
I've been trying to attach the embedded version of the file, and it seems to be
too big. Would it help if I uploaded it to my server and provided a hyperlink?
Comment 6 drewjensen.inbox 2010-02-11 16:16:33 UTC
If there is no confidential data in it, sure - or - you can send the link to my
direct email address.
Comment 7 steven 2010-02-11 16:23:43 UTC
I'm uploading it now to here:

http://www.sheltonlegal.net/OOoLawLaw/

I took all of the confidential data out.

You can specifically see the problem on the CASE DETAILS form. If you look at
the Disposition, Type of Case, and Referral Source fields in OOo 3.1, they work
fine. However, what I consistently get in OOo 3.2 is that the values revert to
NULL when the field is taken out of focus. (The same happens on the CLIENT
DETAILS form under the client name.)

If you scroll down to the Litigation section of the CASE DETAILS form, however,
you'll see that the court designations work fine. The difference is (and this
seems consistent throughout) that the court designation is selected from a list
contained within the menu itself (right-click > CONTROL) whereas the fields
experiencing the problems have their options drawn from another table. So the
problem seems to involve dropdown menus where the options are populated from
tables within the database.

Again: works fine in SO8 and OOo 3.1. Driving me insane in OOo 3.2!

Comment 8 steven 2010-02-11 17:41:53 UTC
Created attachment 67754 [details]
Sample file showing OOo 3.2 form bug
Comment 9 drewjensen.inbox 2010-02-11 18:02:36 UTC
well yes I see it now and it looks like 
http://www.openoffice.org/issues/show_bug.cgi?id=106643

Which is supposedly fixed in 3.2 final.

Come to think of it I checked earlier my files had all been created under 3.2 -
will try another older file and see.
Comment 10 djskafish 2010-02-14 01:39:18 UTC
I have the same problem, running OOo 3.2 RC5. I have a form which feeds a table 
control based upon two dropdown list boxes, one for year and one for month. 
This worked perfectly until I upgraded to 3.2 a few days ago.
Comment 11 drewjensen.inbox 2010-02-14 01:54:24 UTC
Checking some other files it seems that some listboxes work properly and some
don't - 
assigning to developer
set initial target
Comment 12 Frank Schönheit 2010-02-25 12:06:22 UTC
phhh .... that's a somewhat strange setup here:
CaseInfo.CaseNature is of type VARCHAR. Nonetheless, it seems to contain numeric
values, which are expected to match CaseTypes.ID, which in turn is an INTEGER field.

So, what the respective list box in the "Case Details" form is asked for is to
match the *string value* in CaseInfo.CaseNature with the *numeric value* in
CaseTypes.ID. This indeed worked in OOo 3.1.1, since list boxes where more
type-tolerant there. However, because of this tolerance they had other problems,
for instance the mentioned issue 106643.

I need to investigate this in more detail, whether this can reasonably fixed
without re-introducing other bugs.
Comment 13 Frank Schönheit 2010-02-25 12:56:16 UTC
fixed in CWS dba321a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba321a
Comment 14 steven 2010-03-05 13:57:15 UTC
So it look like this is sloppy code on my end (which I have no qualms with; I'm
a completely noob to database design) and it appears that this is probably
something that will eventually break again in a future update when it becomes
necessary for the forms to require stricter compliance. Out of curiosity: what
would be the proper way to "fix" the file so that it would be technically
correct and work in a strict-compliance type environment?
Comment 15 drewjensen.inbox 2010-03-05 14:27:48 UTC
Steven - sent you a direct email regarding this.
Comment 16 drewjensen.inbox 2010-03-05 14:29:06 UTC
ah - didn't mean to close that..doesn't look like there is anyway to undue that,
so just leave it I suppose.
Comment 17 Frank Schönheit 2010-03-11 12:33:14 UTC
re-opening, since the closing was in error
Comment 18 Frank Schönheit 2010-03-11 12:34:02 UTC
back to FIXED
Comment 19 drewjensen.inbox 2010-03-21 14:18:28 UTC
*** Issue 110274 has been marked as a duplicate of this issue. ***
Comment 20 Frank Schönheit 2010-03-24 09:26:59 UTC
fs->msc: please verify in CWS dba321a
Comment 21 marc.neumann 2010-03-26 14:30:56 UTC
verified in CWS dba321a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba321a
Comment 22 steven 2010-04-13 15:12:30 UTC
Not fixed in the March 26 2010 build of OOO320_m14. Downloaded and installed,
and exhibits the same problem. The EIS doesn't tell me which build this is
integrated into; if it was supposed to be the March 26 build, this bug needs to
be re-opened.
Comment 23 drewjensen.inbox 2010-04-13 15:32:35 UTC
@steven - right, the EIS does not show it as being integrated to the main code
line yet - so it would not have been in that dev snapshot build. There is
another one being done later this week, I don't know but I wouldn't bet on this
being in that either.