doDelete Table Method

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Deletes the current record from the database.

Use the doDelete method if the delete table method has been overridden, and you want to use the original version of the delete method. The doDelete method executes the base version of the delete method instead of the overridden version—it is equivalent to executing super()in the delete method.

Example

    ttsBegin;
    while select forUpdate myTable
        where myTable.AccountNum >='200';
    {
        myTable.doDelete();
    }
    ttsCommit;

The previous code deletes all records in the myTable table that have an account number that is greater than or equal to 200.

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.