In what circumstances does XRec contain the last read value from the database?
Why does this not work in Dataport?
Contact.Get(No);
if Contact.Name ='Old name' then begin
Contact.Name:= 'New name';
Contact.Modify(True);
end;
When debugging into Contact.OnModify
value of
xrec.Name = 'New name'
and
rec.Name = 'New name'
Why :shock:
Comments
What you can do in case of the Contact table is make your own xRec in the dataport and instead of using Modify(TRUE); use
Don't you think this is rather strange behaviour for a database trigger? ](*,)
MBS NAV Consultant
Contacts need to be synchronised no matter if the change is made from a form or from code.