Very strange behavior - won't exit designer mode

I attached a servoy sample,

Try opening it and viewing the searchbar form. It won’t come out of designer mode

I found out the form wont display because there is a problem with valuelists. I think it is specific to Numeric valuelists, ie. lists with only numbers.

I have seen an error “unable to format given object as a number” in this kind of situation before. It also seems that even defining a custom valuelist eg. 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24
has troubles. The combobox list comes up with only 2 values, “” and “1”
I also have the add blank value checked if that makes a difference.

Sample01.zip (70.9 KB)

do you fill your valuelist this way “1|2|3” etc? Because that’s wrong… You should do it with one or two arrays… E.g. new Array(1,2,3,4 etc)

in 2.0 you should make youre port and unit global of the same type that youre valuelist returns (so an integer)
Because you now have a type mismatch
Also remove the add empty value from both vlauelist (it doesn’t seem to do anything either because you already have empty values)

in then next release i have made it a bit better so that you can mix a bit better with text dataproviders and other type valuelists.

When you open the valuelist definition dialog by doubleclicking on an existing valuelist, that is defined with a custom list and you want to change it to a database defined list the Server and Table comboboxes are set to the last values defined.

Now If you want to change the valuelist definition from custom to database defined, the list of Fields in the selected table is greyed out. The only way to get the grey to go away is by deselcting the server, reselecting it and then selecting the table you want, then the list comes up. This should be automatically done onShow() or the comboboxes should default to Select Server and Select Table.