Page 1 of 1

Combobox - prevent the user from choosing the "null" value

PostPosted: Thu Jan 30, 2020 7:39 pm
by reversedr
Hi!

In visionX on automatic generated comoboxes
how to prevent the user from choosing the "null" value ?

Thank You

Re: Combobox - prevent the user from choosing the "null" val

PostPosted: Fri Jan 31, 2020 2:34 pm
by Support@SIB
You mean that you have an empty value in the web/vaadin UI in your browser?
This is not the case if you're using the desktop version of your application!

It's a known limitation of the web UI in current UI implementation. We'll solve this problem in newer versions of vaadin UI and sure, next VisionX release will contain the changes automatically.

Right now, the only solution is that you add a value change listener to the datarow and check if the value is null. If this is the case use DataBookUtil.setValue to change the value back... The DataBookUtil takes care of link cell editors and will set all referenced column values not only the visible value.