xApplication.eventDelete Method

Serves as a callback that is called by the kernel when a record in a table is deleted, provided that the kernel has been set up to monitor records in that table.

Syntax

public void eventDelete(Common recordDeleted)

Run On

Server

Parameters

Remarks

A developer can set up the kernel to call back on deletes for a given table. This can be accomplished by inserting a record into the DatabaseLog kernel table with all fields set to relevant values, which includes setting the field logType to EventDelete.

This is very similar to how the logDelete method is called and set up.

The call of this method will be in the transaction in which the record is deleted.

See Also

xApplication Class

DatabaseLog Table

xApplication.eventInsert Method

xApplication.eventRenameKey Method

xApplication.eventUpdate Method

xApplication.logDelete Method