How to get the previous field value in the modifiedField method of the Dynamic Ax table?

I would like to be able to execute some logic in the table.modifiedField method, which compares the previous field value with the new value. How do I go to the previous value?

+3
source share
1 answer

The write buffer, as it was before any changes, is accessible using the method this.orig().

public void modifiedField(fieldId _fieldId)
{
    super(_fieldId);
    info(strfmt("Field number %1 changed from %2 to %3",_fieldId,this.orig().(_fieldId),this.(_fieldId)));
}
+9
source

Source: https://habr.com/ru/post/1698365/


All Articles