Description: Runs before the current DBForm record is saved and can cancel the save.
Execution: The DBForm-level OnBeforeSave formula runs first. If it allows the save to continue, the current object's OnBeforeSave event runs next. If either event blocks the operation, the database save is not started.
Arguments and variables:
Argument_DataID: identifier of the current record.
Argument_ChangedEntryList: comma-separated list of changed entry names.
The current DBForm entry values are also available directly by their entry names.
Result: Return Boolean True or DB_TRUE to block the save. Any other value allows processing to continue. Note that True means cancel, not save.
Availability: DBForm and object-level save events on desktop and web; also usable by custom reason forms that use the same save path.
Example:
// Require EntryTest before saving.
if EntryTest = Null then
Result := True
else
Result := False;