Error: Field <field_name> must have a value

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ply
Posts: 11
Joined: Tue 27 May 2008 15:03

Error: Field <field_name> must have a value

Post by ply » Sat 18 Oct 2008 15:24

I converted components from myDAC to uniDAC.
Now when I try to post new record, an error occurs for every field where I haven't assigned value.
Previously NULL value was automatically converted to "" (string with length=0)

How can I return previous behaviour?
Otherwise I need in all forms to assign zero-length strings to all string fields.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 20 Oct 2008 14:47

Try to set the RequiredFields option of TUniQuery to False.

Post Reply