Share via


doUpdate Table Method

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

The doUpdate method updates the current record with the contents of the buffer. This method also updates the appropriate system fields.

The doUpdate method should be used when the update method on the table is to be bypassed.

Syntax

void doUpdate()

Example

   static void Job1(Args _args)
    {
        CustTable custTable;
        ttsBegin;
        select forUpdate custTable
        where custTable.CreditMax == 3000;
        if (custTable)
        {
           custTable.CreditMax += 1000;
           custTable.doUpdate();
        }
    
        ttsCommit;
    
    }
    ttsCommit;

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