CanDeleteRecord Event

Description

This event fires before an existing record is deleted.

Discussion

This event allows you to abort the delete if certain conditions have not been met.

The following variables are available to you in the event:

Variable
Description
Args

Contains the GridDefinition and rtc variables.

PageVariables

Contains the state info (__si2) object.

DataSubmitted

Contains the primary key for the record and original values.

Your event must set the following variables:

Variable
Description
Result.Cancel

If .T., the delete record action will be cancelled.

Result.ErrorHTML

An HTML error message to display when the event is cancelled.