PurchTotalsSummaryController.checkFields Method [AX 2012]

Checks if the fields that affect totals amounts have been updated and sets the result in a class level variable.

public void checkFields(Common _common)

Run On

Called

Parameters

_common
Type: Common Table
Buffer for the record being updated

This class handles table record updates in two steps. First checkFields() is called from table update() method before the super() call to check if any of the fields that affects purchase order total amounts has been modified and a class level flag is set to indicate so.

Calling checkFields() before super() is needed becuase the super() call resets the original buffer. After the super() is called and the updates have been written to the table a call to onUpdate() is made to write the class level varaible indicating the result from checkFields() to PurchTotalsSummary table.

Community Additions

ADD
Show: