craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > Column Post New Topic   Post A Reply
combobox null value error printer friendly version
next oldest post
Author Messages
wolfstain
Unregistered
Edit or delete this message Reply w/Quote
Posted Monday, June 10, 2013 @ 12:19:01  

I have a problem with a checkbox column, are unchecked by default, but when trying to save data into database I get an error saying that the value of the checkbox is null (should be false), and the db does not allow null values this field. Thanks for your attention.

Column c= dBTable1.getColumn(2);
Hashtable<String, Boolean> h = new Hashtable<String, Boolean>();
h.put("true",new Boolean(true));
h.put("false", new Boolean(false));
dBTable1.setCellComponent(c,Column.CHECKBOX_CELL,h);

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios