The event UpdateRecord occurs when a SQL Data control updates any database records associated with it.
When this event occurs, MSM-Workstation will update the current record with the values of any list-type controls on the window that are bound to the SQL Data Control component (see the property ChoiceField).
If a new record was prepared using the event AddNew, the new record is added to the database.
Otherwise the current record is updated. Then any action logic is executed, and unless the action logic on such an event causes execution of code from the macro %%NotOK, the Changed property of the SQL data control is cleared.
One sample scenario for issuing a %%Perform on this action would be the implementation of a Save button.
Note: This event occurs automatically, where necessary, prior to a Move-type event on a SQL data control that is not ReadOnly (MoveFirst, MoveLast, MoveNext, MovePrevious or MoveTo).
Go to the alphabetic list of events.