Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Table events > List page

Events.Before record deleted

Scroll Prev Next More

Description

The BeforeDelete event is executed before the record is deleted.

Syntax

BeforeDelete(where,deleted_values,message,pageObject)

Arguments

where

a WHERE clause that points to the record to be copied. Example: ID=19.

deleted_values

an array with the field values from the record to be deleted. To access a specific field value, use deleted_values["FieldName"].

Note: Field names are case-sensitive. If the field name is PlayerId, you should use deleted_values["PlayerId"]. Note that deleted_values["playerid"] or deleted_values["PlayerID"] will not work.

 

message

place the message to be displayed into this variable.

pageObject

an object representing the current page. For more information, see RunnerPage class.

Return value

True - the record gets deleted.

 

False - the record does not get deleted.

Applies to pages

List.

Recommended sample events:

Before deleting a record check if related records exist

Update multiple records on the List page

See also:

After record deleted

After group of records deleted

Database API: Delete

RunnerPage class:setTabWhere()