After Destroy hook

Use this hook to perform additional actions after the current record is deleted. Think of updating fields in other tables, etc.

This hook is executed before the after.destroy.object()hook of the standard Data Access Layer is executed. If the standard hook must be executed before the extension hook is executed, you can force the standard hook being executed anytime you prefer. This can be achieved by calling the table.super() function.

All field values of the current record of the table are available.

For more information, see after.destroy.object()of the standard Data Access Layer in the Infor ES Programmers Guide (Infor Customer Portal KB2924522).

Example:

function extern long after.destroy.object() 
{
        table.super()
        txcomdll0001.log.deleted.sales.order(
                  tdsls400.orno, tdsls400.crep,
                  tdssl400.otbp, tdsls400.oamt)
        return(0)
}