Potential issue with applying behavior to a child item when Parent is saved.
I have a work order app that includes Inventory (products and materials).
I want to automatically update the Inventory items as “allocated” when the items are added to a work order.
Installed Products has been made a child table of Work Orders.
I have created an override form for Installed Products that attaches a custom Save function that is intended to find the Installed Products records that have changed, sum up the values of all related rows and then apply the Sum to the Quantity Allocated column of the Inventory table.
I am finding that the Actions attached to the child form are not executed when I follow the normal flow - Edit parent, add a children record, Save child, Save parent.
The records and values are all saved correctly but the child Actions are not performed.
However, if I VIEW the parent detail and from there Add/Update the child, Save child, the save is applied right away to the child (no parent save) and the child Actions are executed updating the results as I expect.
I have been reading posts about the synchronization between Parent and Children but I am not sure what I am missing here.