Mega Code Archive

 
Categories / Delphi / ADO Database
 

Dataset event handlers

Question: How do I handle business rules that are tied to dataset event handlers (OnBeforePost, etc.) on the server? Answer: Install and use the TUpdateSQLProvider component, found in the \demos\Usqlprov directory). It has an OnUpdateRecord event that fires for every record getting updated.