G
Guest
I'm struggling with relationship constraints, when adding new rows. If I want
to add a single row in a single-table scenario and let the user enter values
on a fom, it's easy. I just call the TA.Add{tablename}Row() method. In the
edit form I bind and do an Update() when done.
Problem? Say I have a parent record that I want the user to select from a
drop-down? The Add{tablename}Row() method fails because my DB constraints
don't allow for a NULL FK to the parent table.
That makes sense, but how do I get a place hold, let the user fill it in
(select parent) and on the Update() fail it if they didn't select a parent?
to add a single row in a single-table scenario and let the user enter values
on a fom, it's easy. I just call the TA.Add{tablename}Row() method. In the
edit form I bind and do an Update() when done.
Problem? Say I have a parent record that I want the user to select from a
drop-down? The Add{tablename}Row() method fails because my DB constraints
don't allow for a NULL FK to the parent table.
That makes sense, but how do I get a place hold, let the user fill it in
(select parent) and on the Update() fail it if they didn't select a parent?