This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

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

Frequently asked questions about VisionX.

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

Postby reversedr » Thu Jan 30, 2020 7:39 pm

Hi!

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

Thank You
reversedr
 
Posts: 34
Joined: Tue Oct 23, 2018 11:03 am

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

Postby Support@SIB » Fri Jan 31, 2020 2:34 pm

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.
User avatar
Support@SIB
 
Posts: 345
Joined: Mon Sep 28, 2009 1:56 pm


Return to VisionX