What is the state of allow empty value of youre valuelist?
If you enabled this then the first value will be removed (this is how it works with normal valuelist. We add a empty value to the top and remove that one if we display them as a checkbox.
So when you are setting values youreself in such a valuelist you have to add an empty value to the top yourself.
I am just struggling with this. I try to create a value list by method. I see all values OK if the value list does not allow empty values. But then I cannot deselect the last value. So I checked “Allow empty values” and added an empty value in my method. But then I only see one unnamed entry in the checkbox area.
Hi Patrick, I have seen this behaviour once too…
However when I isolated the creation of the list in a sample solution I couldn’t replicate it. I therefore didn’t report it but now you mention it… There probably is a reason for it. I built the valuelist with display and real values. The list was attached to a global in a formindialog…
I have taken out the empty value and allow empty value.
Not what I wanted but not an issue either. Because I couldn’t replicate it in a sample I placed it on my ‘todo list’ to debug it later and didn’t bother anymore.
this is fixed now so it is also sees a valuelist with allow empty is not seen as a default 1 size great valuelist
Because a 1 size valuelist is used as a checkbox and then the value of that one line is used as the value if the checkbox is selected or not
If you have a custom valuelist. And you want to use it always for more then one chekcbox then you have 2 options
make sure that before you even touch the form (doesn’t matter how) the valuelist is completely filled.
Or
set always some default values in the valuelist like “test1” “test2” “test3”
jcompagner:
Or set always some default values in the valuelist like “test1” “test2” “test3”
You can set the value list to space-carriage return-space. This will show an empty value list until you fill it manually but Servoy “understands” the value list to have default values.