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.

Example:

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

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

For more information about using the table.super() function within hooks, see Using table.super() in hooks.