G
Guest
Hi,
I have two tables in a dataset. I want to create a relation between the two
tables in which the child table can have foreign keys that do not match
primary key fields in the parent table. When the parent table is updated, I
want any related foreign key fields in the child table to be updated, but I
don't want any deletions to be cascaded. I've tried setting DeleteRule to
SetNull and UpdateRule to Cascade, but I get a constraint error on filling
the dataset in my program, I guess because most fields in the child table do
not have parent rows (but I don't want them to have parent rows). How do I
set this up in the dataset schema editor?
Thanks,
Nathan
I have two tables in a dataset. I want to create a relation between the two
tables in which the child table can have foreign keys that do not match
primary key fields in the parent table. When the parent table is updated, I
want any related foreign key fields in the child table to be updated, but I
don't want any deletions to be cascaded. I've tried setting DeleteRule to
SetNull and UpdateRule to Cascade, but I get a constraint error on filling
the dataset in my program, I guess because most fields in the child table do
not have parent rows (but I don't want them to have parent rows). How do I
set this up in the dataset schema editor?
Thanks,
Nathan