Required BOOLEAN field generate errors!

A place for users and developers of the Xataface to discuss and receive support.

Required BOOLEAN field generate errors!

Postby ippass » Sat Feb 18, 2012 4:10 pm

when my BOOLEAN data field set to be required,
and I'm using a widget:checkbox,
I'm asumming when I do not check the box means saving a zero to the table,
but it goes err telling me the field is a requied field!

and I should check it (save it as 1) before I click on the "save" button!

the required field requires the user choose yes/no,
but now , only yes could be chosed!

if I change the field to allow null,
the field would be not showing in the view mode!

is this an error? or how to solve it?
ippass
 
Posts: 2
Joined: Sat Feb 18, 2012 4:01 pm

Re: Required BOOLEAN field generate errors!

Postby shannah » Sun Feb 19, 2012 10:20 am

I guess this could be classified as a bug. The only thing is it's not trivial to fix because some applications may rely on the current behaviour (i.e. required means that it must be checked).

If you can change the default value (in MySQL) of the field to 0 this may be a workaround that will solve your problem.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved