Is there any flag that gets turned on somewhere that tells you a record has been modified without having to go through each field checking the Field vs xRec.Field ?
Is there any flag that gets turned on somewhere that tells you a record has been modified without having to go through each field checking the Field vs xRec.Field ?
If you modify a record, the OnModify-trigger on the record is being called.
Except when a change through code is being made without using MODIFY(TRUE);
If you want to keep track on changes on certain field, then you could use change log entries.
item.get('CNKOR000003');
item2.get('CNKOR000003');
if format(Item2) = format(Item) then
message('they are the same')
else
message('they are different');
Ahmed Rashed Amini
Independent Consultant/Developer
item.get('CNKOR000003');
item2.get('CNKOR000003');
if format(Item2) = format(Item) then
message('they are the same')
else
message('they are different');
Good tip! =D>
I saw this once used for importing a file. Can be very handy.
Answers
If you modify a record, the OnModify-trigger on the record is being called.
Except when a change through code is being made without using MODIFY(TRUE);
If you want to keep track on changes on certain field, then you could use change log entries.
Tino Ruijs
Microsoft Dynamics NAV specialist
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks Rashed
Good tip! =D>
I saw this once used for importing a file. Can be very handy.
Tino Ruijs
Microsoft Dynamics NAV specialist
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Now, if you guys could just help me pointing out these topics to be moved to Tips&Tricks by using the reporting function, I would be very grateful.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!