New Posts New Posts RSS Feed: Nulls getting passed to the database on insert?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Nulls getting passed to the database on insert?

 Post Reply Post Reply
Author
Jon S View Drop Down
Newbie
Newbie


Joined: 25-Apr-2008
Posts: 3
Post Options Post Options   Quote Jon S Quote  Post ReplyReply Direct Link To This Post Topic: Nulls getting passed to the database on insert?
    Posted: 25-Apr-2008 at 6:40am
I've got an entity that only includes three fields from a database table.  When I create a new entity, populate my three fields, and then save, I get an error: "can't save null value in field X".  This field 1) isn't included in my business object, 2) isn't nullable,  and 3) has a default value in the database.

Is DevForce trying to set it to null anyway?  What is the best solution for this?

Thanks!
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 25-Apr-2008 at 4:49pm

In the ORM Tool, set "Column Selection Options" to "AllowColumnSelection"

 
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down