Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | List box with dropdown=no has extra item | ||||||
---|---|---|---|---|---|---|---|
Product: | Base | Reporter: | Unknown <non-migrated> | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CONFIRMED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues | ||||
Version: | OOo 1.1 Beta2 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
Unknown
2003-05-28 16:01:34 UTC
correcting sub component/default owner (see http://www.openoffice.org/issues/describecomponents.cgi?component=database%20access) Tamar, thanks for reporting this. Though, I have a problem (: I always get this empty line, even if I don't change the DropDown property (which's default is "No"). Can you please confirm that the empty line really depends on the dropdown property? I suspect it really isn't, except I overlooked something important. The reason for the empty line is that the listbox is bound to a field which is not required to be set. The listbox then automatically inserts an empty string, and when chosen, it will write NULL into the database. If you'd bind the control to a field where the input is required, then this empty string wouldn't appear. So unless we find that the empty string is really dependent on the dropdown property (sorry, I still doubt :), this works as intended, and would be a INVALID. I just tried it again. If I just go through the AutoPilot and then turn design mode off, I can drop open the list and there's no blank entry. I've scrolled to both ends to confirm this. Once I set Dropdown to No, the blank entry appears. Okay, now I tried it again with the Biblio table and, in that case, I do see the blank line initially. My other tests have been with dBase tables of my own design and they definitely exhibit the problem. Sorry for sending you down the wrong path. Hi, I can't reproduce this. In my list box I have everytime a blank line, as FS mention for the null value. Can you please attach a sample table to this issue, where the wrong behaviour occurr. Bye Marc After some experimenting, I find that I'm seeing this problem with listboxes created based on Visual FoxPro data, which I'm accessing via ODBC. I've attached a sample database with two tables, Person and State. To demonstrate the problem: 1) Create an ODBC data source, using the Visual FoxPro driver, and pointing at this database. 2) Add this ODBC data source to the OOo Data Sources. 3) Create a form, with a single listbox. The form data source should be the Person table. The listbox data comes from the State table. Display the cStateName field. Link the cStateAbbr field in the two tables. When you turn design mode off and drop open the list, there's no blank entry. Sorry it's taken me so long to nail this down. Created attachment 7069 [details]
Database to demonstrate issue with listboxes and VFP tables
Hi, Yes, I can reproduce this. msc -> fs: follow the instruction from tamar and you see the effect. Bye Marc change subcomponent to 'none' Reset assigne to the default "issues@openoffice.apache.org". |