Master-Detail & MySQL. How to get the Id of the parent tabl
Posted: 15.04.2014, 14:13
Excuse me for my English .
How to get the Id of the parent table for Detail?
Hello.
Help out with a problem.
I have 2 dataset (mySQL)
1) Parent: Id (Autoincrement), Name
2) Child: Id, Id_parent (not NULL), Name
For Child organized by dbgrideh.
To configure the Child property: dsParent=Masterdetail,
MasterField=Id,
LinkedFields=Id_parent
I add new record Parent.
When doing Parent.Post, I get the error: ' Column cannot be null ' Id_Parent'
How can I find out in advance the auto-incrementing Id (Parent) and assign it a value for ID_Parent ?
How to get the Id of the parent table for Detail?
Hello.
Help out with a problem.
I have 2 dataset (mySQL)
1) Parent: Id (Autoincrement), Name
2) Child: Id, Id_parent (not NULL), Name
For Child organized by dbgrideh.
To configure the Child property: dsParent=Masterdetail,
MasterField=Id,
LinkedFields=Id_parent
I add new record Parent.
When doing Parent.Post, I get the error: ' Column cannot be null ' Id_Parent'
How can I find out in advance the auto-incrementing Id (Parent) and assign it a value for ID_Parent ?