Change default behavior on edit: for empty fields, from empty string to null
Change default behavior on edit: for empty fields, from empty string to null
I have certain int attributes in a database table, which are allowed to have a value of null. When I try to edit a row on a data table and leave these fields empty, I get an error (probably because the program is setting them to an empty string, which isn't a valid value because my attribute is an int). How do I change this behavior? When editing a row in a data table, how do I tell the program to give the empty fields a value of null instead of an empty string?
Thank you.
Thank you.
This discussion has been closed.
Replies
Regards,
Allan