# Dynamic Valuelist bug

**URL:** <https://forum.servoy.com/t/dynamic-valuelist-bug/6969>\
**Category:** Classic Servoy\
**Created:** [January 17, 2007, 6:40am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969 "2007-01-17T06:40:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSibai](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@MSibai](https://forum.servoy.com/u/MSibai)\
**Post date:** [January 17, 2007, 6:40am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/1 "2007-01-17T06:40:37Z")

</div>

Consider I have a table called reasons (id, test\_id, reason) where test\_id is a foreign key with the following sample of values:  
1,1,reason1  
2,1,reason2  
3,1,reason3  
4,1,reason4  
5,1,reason5  
1,2,reason1  
2,2,reason2  
3,2,reason3  
4,2,reason4

if I make a new value list called “reasons” with empty custom values, attached to a check box field, then I have added a function that fires on load of the form with the following code:

var sql\_query = “select reason from reasons where test\_id = 1”;  
var dataset = databaseManager.getDataSetByQuery(controller.getServerName(), sql\_query, null, 100);  
application.setValueListItems( “reasons”, dataset);

I will be getting the following check boxes:  
reason1  
reason2  
reason3  
reason4  
reason5

If I go back to the value list wizard and check the “Allow Empty Value” then I will be getting the following:

reason2  
reason3  
reason4  
reason5

note that I have missed one, and this happens if the field being attached to is Nullable or Not.

Please advice…

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [January 17, 2007, 8:21am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/2 "2007-01-17T08:21:18Z")

</div>

Hi,

I tried the same with the latest version of Servoy (3.1) and did not see the behavior you described.  
What servoy version/java version/os are you using?

Rob

---

<div class="post-metadata">

**Author:** ![MSibai](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@MSibai](https://forum.servoy.com/u/MSibai)\
**Post date:** [January 17, 2007, 9:30am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/3 "2007-01-17T09:30:50Z")

</div>

Servoy Developer  
Version 3.1 beta2-build 401  
Java version 1.5.0\_09-b03 (SunOS)

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [January 17, 2007, 4:31pm UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/4 "2007-01-17T16:31:55Z")

</div>

Please try 3.1 final.

Rob

---

<div class="post-metadata">

**Author:** ![MSibai](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@MSibai](https://forum.servoy.com/u/MSibai)\
**Post date:** [January 28, 2007, 6:00am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/5 "2007-01-28T06:00:12Z")

</div>

Hi Rob,

Sorry for the late response.

I have updated Servoy to 3.1 final and still I am facing the same issue. ![:cry:]( "Crying or Very sad")

Mohamad Sibai

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [January 29, 2007, 8:01am UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/6 "2007-01-29T08:01:42Z")

</div>

We cannot reproduce this.  
Please create a support case at: [http://crm.servoy.com/servoy-webclient/ … oy\_support](http://crm.servoy.com/servoy-webclient/solutions/solution/servoy_support) , include a test solution that shows the problem

---

<div class="post-metadata">

**Author:** ![MSibai](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@MSibai](https://forum.servoy.com/u/MSibai)\
**Post date:** [April 19, 2007, 1:23pm UTC](https://forum.servoy.com/t/dynamic-valuelist-bug/6969/7 "2007-04-19T13:23:47Z")

</div>

Solved with 3.5 beta

Thank you guys
