The Semi-Rookie rides again - combobox error message

Hi all,

And good day.

I have this error message that occasionally pops up and then goes away on it’s own, only to pop up later again. It’s happened again while creating a new copy of Servoy on a new harddrive. The message is…

“Editable combobox “anyname” has attached a valuelist that contains real values. This is not supported”.

Now, most of these fields haven’t changed in a long time. So why would the error message sometimes be there, and sometimes not? I’ve got warnings that do the same thing. Sometime you see them, sometimes you don’t.

But, most importantly right now, what is this error message telling me?

The combobox itself is editable because I allow users to type in new values if the want, and then I use an Ondatachange event to check and see if their item is in the list, and if not, give them an opportunity to add it. This, in itself, has worked fine for quite some time.

Oh, and this is on Servoy 6.1.2, which I mistakenly installed, rather than taking my usually more prudent route of staying a bit back from the bleeding edge. :-)

As always, any guidance on this would be appreciated.

Thanks and have a good day.

Ron

This is telling you that you have applied a valuelist that displays one value, but returns another. These valuelists are not editable because logically you would not know the real value as a user. I know in your system you are capturing this event, so that is why you have set this as editable, so you may need to look at another way to allow the user to enter new values into the list.

Hi Jason,

For now, I just set the preferences in Servoy to present these as warnings instead of errors. There actually is another method in the system for users to add data to the tables underlying the valuelists, and this was just meant to be a shortcut to avoid having to go there. I fire an onDataChange look to see if the newValue is in the table behind the valuelist, and if it’s not, I give them the option of adding it. If there’s another mechanism that would provide the functionality without generating the error, that’d be find with me.

Thanks.

Ron