There is the Problem… If i use ruoOnPost ( witch i doo on the Normal ( not clone ) Tables there is the above mentioned Error.
If i use ruoOnPost then i get the Error
The Above Error shows with tbl_member_clone.ApplyUpdates();
with Post i get this:
Maybe important. on the main Table i have this:
procedure TDM_member.tbl_memberAfterInsert(DataTable: TDADataTable);
var
NewGUID : TGUID;
begin
if (tbl_member_CanInsert) then
begin
with tbl_member do
begin
CreateGUID(NewGUID);
FieldByName('ID').AsString:=GUIDToString(NewGUID); // Generate GUID
FieldByName('C_NO').AsString:=camp_no;
FieldByName('U_NO').AsInteger:=gideon_no;
FieldByName('CERT_G').AsString:='False';
FieldByName('CERT_A').AsString:='False';
FieldByName('LTM_G').AsString:='False';
FieldByName('LTM_A').AsString:='False';
FieldByName('CS_S_T').AsString:='False';
FieldByName('L_UPDATE').AsDateTime := Now;
FieldByName('STAT_DEL').AsString:=('0');
ApplyUpdates();
end;
end;
if not SameText (camp_no, camp_no_cu)
then ShowMessage('! The Entry is generated in the Camp '+ camp_no +' !');
end;
hmm, your code in TDM_member.tbl_memberAfterInsert shows that you don’t use ruoOnPost for main table (i.e. tbl_member)
Can you create a simple testcase that reproduces, this problem, pls?
your code has a lot of hidden underwater stones so it can’t be reproduces with simple testcase easily