Hello together,
I found a weird behavior in 2009 Classic Client (SQL)
It looks like the system would ignore table code when running on a form.
Instead when firing the trigger from running the table directly it seems to work.
Example:
When deleting one sales line - another one is modified and a related record in another table is getting deleted (Table OnDelete-Trigger).
This works fine when running the table directly from object designer and deleting a record.
When creating a new form based on the sales line table with no code in any form trigger, the code runs (I saw it in the debugger) but the related table still exists afterwards and the other sales line record is not changed.
Similar behavior I have found in a “OnValidate” trigger of a field in the Purchase Header table.
I can see the code running, just before leaving the trigger the changed fields all show the new value. After returning to the form the fields are clear again. But when running the trigger a second time (reentering the same value) it works.
I’m programming in Navision for 12 years now and have never seen such things happening.