Subject | masterdetail and defaults |
---|---|
Author | bemmel2003 |
Post date | 2003-06-10T11:30:45Z |
Hi,
When I define a master-detail using stringkeys I do not need to set
my key in the afterinsert event of my detail-dataset. That's fine.
But if I define a master-detail using integers (not null ) I have to
use the afterinsert event of my detail-dataset or I will get a
message " null not allowed on ID " when I try to insert and then post
a record. If I define a dummy default in TIBOquery of "ID=0" then
somehow my detail-ID will not change anymore to the master-ID
Did I do something wrong here or is it a known issue ?
Leon
When I define a master-detail using stringkeys I do not need to set
my key in the afterinsert event of my detail-dataset. That's fine.
But if I define a master-detail using integers (not null ) I have to
use the afterinsert event of my detail-dataset or I will get a
message " null not allowed on ID " when I try to insert and then post
a record. If I define a dummy default in TIBOquery of "ID=0" then
somehow my detail-ID will not change anymore to the master-ID
Did I do something wrong here or is it a known issue ?
Leon