# Value list item selection doesn't work well

**URL:** <https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184>\
**Category:** Classic Servoy\
**Created:** [July 9, 2003, 6:56am UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184 "2003-07-09T06:56:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [July 9, 2003, 6:56am UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/1 "2003-07-09T06:56:29Z")

</div>

Hi,

after installing the new 1.1 release, I still have problems when I select a value from a field generated value list.  
If I choose the item, its value is not copied into the field.  
If I move back and forward, click out of the field 3/4 times, the value is accepted (most of the times).  
The valuelist is a simple list of names, the backend is MySQL.

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [July 10, 2003, 3:58pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/2 "2003-07-10T15:58:43Z")

</div>

Hi Ricardo,

Is the field set to NON-editable?  
(when using combo box , always set to non editable by default).

Did you check field properties length and type ? eg: varchar(10)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 11, 2003, 2:41pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/3 "2003-07-11T14:41:12Z")

</div>

Riccardino,

what do you exactly use?

You have a combo box where a value list is attached to (related? whole table?) And in what kind of view is that combo box in? (ListView, RecordView or maybe a portal?)

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [July 11, 2003, 6:39pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/4 "2003-07-11T18:39:46Z")

</div>

> jcompagner:  
> Riccardino,
> 
> what do you exactly use?
> 
> You have a combo box where a value list is attached to (related? whole table?) And in what kind of view is that combo box in? (ListView, RecordView or maybe a portal?)

Whole table, record view. It’s a value list that retrieves all the director’s names from the same table.

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [July 11, 2003, 6:45pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/5 "2003-07-11T18:45:03Z")

</div>

> maarten:  
> Hi Ricardo,
> 
> Is the field set to NON-editable?  
> (when using combo box , always set to non editable by default).

Oops: I didn’t know. I’ll try immediately. It could be the answer…  
But, why has the field to be set non editable?

> maarten:  
> Did you check field properties length and type ? eg: varchar(10)

Text, 250 characters

Bye RicCardo ![:wink:]( "Wink")

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [July 11, 2003, 6:55pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/6 "2003-07-11T18:55:26Z")

</div>

> Riccardino:
> 
> > maarten:  
> > Hi Ricardo,
> > 
> > Is the field set to NON-editable?  
> > (when using combo box , always set to non editable by default).
> 
> Oops: I didn’t know. I’ll try immediately. It could be the answer…

Hi again, Marteen

setting the field non editable seems to remove the problem, but now I’m encountering a different one: how can I insert a new director in the list?

Thanks

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 17, 2003, 8:57am UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/7 "2003-07-17T08:57:10Z")

</div>

The editable combo problem not setting the value is fixed in the next build after RC4 (please try it when it is out)

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [August 3, 2003, 3:29pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/8 "2003-08-03T15:29:09Z")

</div>

> jcompagner:  
> The editable combo problem not setting the value is fixed in the next build after RC4 (please try it when it is out)

I’m having the same problem (RC5, build 257): the name disappears if I switch to another field using tab, if I press enter, the value seems to be stored, but it doesn’t appear on the field if formatted as a combo box.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 4, 2003, 12:39pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/9 "2003-08-04T12:39:55Z")

</div>

Riccardino ,

i can’t reproduce this or i am doing something wrong..

i have a form in record view there i have 3 fields on  
2 textfields and one combo,

this combo maps to a text column in the database.  
I attached a custom value list of 3 text string (test1,test2,test3)  
the combo is editable.

now i can tab in it and then select one of the list or type my own string and tab out of it.

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [August 4, 2003, 12:43pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/10 "2003-08-04T12:43:23Z")

</div>

> jcompagner:  
> Riccardino ,
> 
> i can’t reproduce this or i am doing something wrong..
> 
> i have a form in record view there i have 3 fields on  
> 2 textfields and one combo,
> 
> this combo maps to a text column in the database.  
> I attached a custom value list of 3 text string (test1,test2,test3)  
> the combo is editable.
> 
> now i can tab in it and then select one of the list or type my own string and tab out of it.

If I write something in the combo (entering a value that doesn’t belong to the valuelist), after tabbing out of the field, the text in the combo disappears.  
This way, I can’t add new values to the field…

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 4, 2003, 1:11pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/11 "2003-08-04T13:11:58Z")

</div>

very strange that is what i tried to reproduce.

Can you send me an simple example solution which shows that?

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [August 4, 2003, 3:07pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/12 "2003-08-04T15:07:38Z")

</div>

> jcompagner:  
> very strange that is what i tried to reproduce.
> 
> Can you send me an simple example solution which shows that?

Sure. It’s a very basic solution using a mysql table reached via internet.

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [August 7, 2003, 12:14pm UTC](https://forum.servoy.com/t/value-list-item-selection-doesnt-work-well/184/13 "2003-08-07T12:14:14Z")

</div>

We have found and fixed this behaviour, available after rc5
