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.
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.
Informative blog. Thank you for sharing with us..
ReplyDeleteD365 AX Technical Online Training
Most informative blog.Thanks for sharing the post.
ReplyDeleteFull Stack Training in Chennai | Certification | Online Training Course | Full Stack Training in Bangalore | Certification | Online Training Course | Full Stack Training in Hyderabad | Certification | Online Training Course | Full Stack Training in Pune | Certification | Online Training Course | Full Stack Training | Certification | Full Stack Online Training Course