Code: Select all
master table (
id varchar(50) primary key,
name varchar(50)
);
detail table (
id varchar(50) primary key,
master_id varchar(50),
name varchar(50)
);
above tables are master-detail relationship, and cachedupdate is true, separate two grid link with them in the same form.
firstly i insert a record on master table id = 'A', then go to detail table insert 2 records, the master_id append 'A' by default due to the master-detail relationship, enter some value for 2 records like id = 'A1' & 'A2'
now the problem is when i update the master table id from 'A' to 'B', all details records disappear. how to implement a cascade update for detail.master_id ?
thx & regards
jacky