Occurs before an application saves changes for the current entity to the database.
property OnPost: TOnModifyEvent;
Write a OnPost event handler to take specific action when the dataset applies changes for the current record to the current entity and before the application saves the entity changes. OnPost is triggered when an application calls the Post method. Post checks to make sure all required fields are present, calls the BeforePost event, then applies data changes to the current entity and calls the OnPost event.
In the OnPost event handler, the DataSetAction parameter indicates the current dataset operation:
The ApplyAction parameter defines which actions have to be performed to the current entity after the event is called: