xApplication.eventInsert Method

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

Syntax

public void eventInsert(Common recordInserted)

Run On

Server

Parameters

Remarks

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

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

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

See Also

xApplication Class

DatabaseLog Table

xApplication.eventDelete Method

xApplication.eventRenameKey Method

xApplication.eventUpdate Method

xApplication.logInsert Method