Could it be that in your OnApplyRecord event handler, one or more actions are not handled (in other words, the Applied parameter stays False)? In the demo this parameter is always set to True, so that the dataset does not need to perform any default actions on the table, and does not need to know the table name.
------------------
Marco Kalter
Allround Automations