Issue 27024 - regression: the default selection is not set in the listbox
Summary: regression: the default selection is not set in the listbox
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 1.1.1RC
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: OOo 1.1.2
Assignee: marc.neumann
QA Contact: issues@framework
URL:
Keywords: oooqa
: 27530 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-03-28 08:13 UTC by phemmel
Modified: 2004-04-27 09:25 UTC (History)
1 user (show)

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


Attachments
Example of a simple form with a list box (5.80 KB, application/vnd.sun.xml.writer)
2004-03-28 08:14 UTC, phemmel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description phemmel 2004-03-28 08:13:25 UTC
Hello 
 
When I open a file containing a form with a list box, the last content 
selected in the list box and saved with the file isn't retrieved. The list box 
is empty. 
 
If I open the same file with the 1.1.0 version, it's ok. 
 
If I change the selected value with the 1.1.1rc3 version, and then open with 
the 1.1.0 version, that's ok too. 
 
Tested in Writer and Calc. 
 
The forms we have done will be quite unusable ! 
 
Regards. 
 
Philippe
Comment 1 phemmel 2004-03-28 08:14:53 UTC
Created attachment 14114 [details]
Example of a simple form with a list box
Comment 2 mci 2004-03-29 07:39:49 UTC
Hi phemmel,

thansk for using and supporting OpenOffice.org...

I opened your document using OOo1.1.1RC3 on Solaris and on Redhat Linux 9....
You made 2 list boxes with 3 entries each list box...
I was able to choose each of them...
Please try again with our newest verseion and send a new comment if your problem
occurs again...
Comment 3 mci 2004-03-29 07:46:42 UTC
reassigned to msc

@ msc:
this seems to be something for you...
I wasn't able to reproduce it ....
Comment 4 phemmel 2004-03-29 08:56:10 UTC
Well, maybe my explanation was not so good ... 
 
Try to open my file with OO 1.1.1 rc3 : the first list box is empty. 
Try with OO 1.1.0 : the first list box isn't empty ! 
 
Actually the file was saved with something in the three fields. The three 
fields are different, in order to show that the bug appears only with list 
box. The third field isn't a list box, it's a combo box. 
 
Philippe 
 
Comment 5 phemmel 2004-03-30 20:37:16 UTC
Hello again 
 
Some people around me didn't understand the problem described in this issue, 
so here are some more details. 
 
The problem is the choice made by the user isn't stored when he save the file. 
Showing the different possibilities in the list box is good, saving the user 
choice is better in order to process the file ! Often forms are used to create 
templates, and the results of the user choice have to be sent to other users. 
 
Hope it's clear now ! 
 
This problem means that I can't give the 1.1.1 version to some of my clients. 
And they are waiting for it for 6 months ! 
 
Philippe 
Comment 6 phemmel 2004-04-01 11:37:05 UTC
I've changed the Os to All : I've tested on Windows and the bug exists too. 
 
Philippe 
 
Comment 7 anowak 2004-04-01 15:15:18 UTC
Hi,
I had a look at the content.xml, so I can give some more informations about the bug.
With both 00o 1.1.0 and OOo 1.1.1, the selected item of a list box is stored in
an attribut of the form:option tag (included in the form:listbox), for instance :
<form:option form:label="data2" form:current-selected="true"/>
With OOo 1.1.1 : the "current-selected" attribute is ignored. But another
attribute is used, which is : "selected". So with OOo 1.1.1, with the following
tag :
<form:option form:label="data2" form:selected="true"/>
the item is selected in the list box. But : then you can't change the selected
item, this attibute is used for reading but it is not used when storing the
document.

Hope this can help ...
Comment 8 marc.neumann 2004-04-05 08:42:07 UTC
Hi,

I can reproduce this.

reassign to the right developer, set target.

Bye Marc
Comment 9 phemmel 2004-04-05 11:44:19 UTC
Hello again 
 
target 1.1.3 ??? 
 
I'm so disapointed ... 
 
I'm working in StarXpert, a IT company specialised in the opensource desktop, 
and sun partner (for StarOffice and JDS). 
 
Please, realise that while the list box won't work, I can't provide my clients 
with this new version ! As I said, many of them use forms to build pre 
formatted templates, and they can't use their templates with the 1.1.1 version 
(if they use list box, so very often). 
 
For instance, the french Ministry of Interior is waiting for us to provide a 
new installation package for the 1.1.1 version of OO. What can I say to them ? 
 
Alain (anowak) found a accurate reason about this bug, it seems not so 
complicated to resolve it. Ok, we won't correct it, we don't know how to do 
that, so I can't evaluate the difficulty. 
 
But, due to this first analyse and the problems it creates, it seems 
reasonnable to me to set the target to 1.1.2. 
 
If we can help more, don't hesitate to ask. 
 
Let's vote ! 
 
Bye 
 
Philippe 
 
Comment 10 Frank Schönheit 2004-04-05 12:01:57 UTC
targeting for 1.1.2 in agreement with MSC

fixed in CWS oj12
Comment 11 Frank Schönheit 2004-04-05 12:03:20 UTC
for the records: This is a regression of the "bind form controls to spreadsheet
cells" feature introduced with 1.1.1
Comment 12 Frank Schönheit 2004-04-05 13:04:02 UTC
2.0 version of this issue: issue 27456
Comment 13 Frank Schönheit 2004-04-05 13:04:41 UTC
fs->msc: please verify in CWS oj12
Comment 14 marc.neumann 2004-04-05 13:25:54 UTC
set to fixed
Comment 15 marc.neumann 2004-04-05 13:26:11 UTC
verify in cws oj12
Comment 16 marc.neumann 2004-04-07 07:49:48 UTC
*** Issue 27530 has been marked as a duplicate of this issue. ***
Comment 17 marc.neumann 2004-04-27 09:25:17 UTC
Hi,

fixed in OOo 1.1.2 which will be available soon -> close.
Feel free to reopen if this issue is not fixed in the final 1.1.2 build.

Bye Marc