Hi all experts and Navision Freaks...
I have this funny question:
Why does the Change Log work when changing "Shipment Date" but saying "No" to the update of sales lines.
But it does NOT work, when the user says "Yes" to update the sales lines.
It is tested in 3.70A, 3.70B and 4.00 - with same result....
Any answers is greatly appreciated.. :?: ](*,)
Regards,
Henrik Frederiksen, Denmark
0
Comments
The Change Log only handles the changes made by human beings.
but the change of Shipment Date on Sales Header is made "by hand" in both cases..
I can understand that no logging of the lines change - but not the change of the header!!
Henrik Frederiksen, Denmark
Henrik Frederiksen, Denmark
After the transaction started by the OnValidate is finished, is the user placed back in the form. When the user press esc/page-up (etc.) the automatic update is started, that might store something in the ChangeLog. However, it will not find any differences, so it will not log anything.
This situation MIGHT be changed by Update 1 to 4.0. I seem to remember that the logic to find xRec has been changed, but I don't know if it solves this problem.
You can also solve the problem yourself, however you can only do it one by one. For example like this: (Not tested, but it should work - otherwise let me know ;-))
Peter
RecRef - RECORDREF
ChangeLogManagement - Codeunit "Change Log Management"
Do I need to initiate ChangeLogManagement? Or 4 strings make the record in table change log entry?
Peter
your code works!
Now I found the answer why Navision didn't log changes by field Routing No. or Production BOM No. in Table Item.
Excellent.
Regards
Tirta