TAstaProvider.BeforeUpdate


Applies to
TAstaProvider

 

Declaration
type

TAstaUpdateEvent = procedure(Sender: TObject; ClientSocket: TCustomWinSocket; ExecQuery: TComponent;
  OriginalValueDataSet,CurrentValueDataSet,ServerValueDatASet;CurrentValueDataSet: TDataset;
var Handled: Boolean) of object;

property BeforeUpdate: TAstaUpdateEvent;

 

Description
This event will fire before an update using
server side SQL and allows you to execute additional SQL statements using the scratch ExecQuery that is passed through by this event. The CurrentValueDataSet will contain the current values from the client dataset, the originalValueDataSet will contain the original values before the update and if the CompareCurrentServerValuesOnUpdates is set to true the ServerValueDataSet will contain freshly populate data from the server. If the var Handled:Boolean is set to true the AstaProvider will not generate any SQL. Use the passed in ExecQuery by typecasting it to fire any Update SQL in this event.



ASTA Overview