Hi All,
There is a method named orig() in AX which refers to the last saved state of the current table buffer. The SalesTable form uses orig() method in lot of places in its datasource methods.You could find the code in the write method of the SalesTable datasource.
In the SalesLine DataSource under the SalesQty field you could find the following code in the modified() method.
if (salesLine.orig().SalesPrice!= salesLine.SalesPrice)
{
//some code here
}
In this case salesLine.orig().SalesPrice is the original (already saved)
price, while salesLine.salesPrice is the price that the user is attempting to modify.
Regards,
Siva