Muokkaa

Jaa


OnDelete (Table) trigger

Version: Available or changed with runtime version 1.0.

Runs when a user tries to delete a record.

Syntax

trigger OnDelete()
begin
    ...
end;

Remarks

This trigger runs before the default delete behavior, which checks that the record exists before the deletion occurs. It runs automatically after the user chooses to delete a record in a page from the Web Client. If a user deletes a record using AL code, then the RunTrigger argument of DELETE (Record) Method or DELETEALL (Record) Method must be set to true for the OnDelete Trigger to run, or otherwise it will not. The record is not deleted if an error occurs in the trigger code.

Get Started with AL
Developing Extensions
OnDelete (Table Extension) Trigger