CanUpdateRecord Event
Description
This event fires before an update is made to an existing record.
Discussion
This event allows you to abort the update if certain conditions have not been met. Note that the event only fires if the row is dirty - i.e. the user has made at least one change to a field in a row.
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 new and original values for the record.
Your event must set the following variables:
- Variable
- Description
- Result.Cancel
If .T., the update record action will be cancelled.
- Result.ErrorHTML
An HTML error message to display when the event is cancelled.