How to get the previous record in a grid in a form in AX 2012

Hello Everyone,

How to get the value of previous record while creating a new record in the grid in AX 2012??. I want to insert some of the values in previous record to the newly created record, which is created by pressing Ctrl+ N or “New” button. Please help me.

Thanks in Advance,!!

Best Regards,


Hi Alonso,

You have to write a find method or select statement to find the previous record based on some primary values of the table and then you can use the value as you required on the click event of your new button of the form.

Thanks & Regards

Pranav Gupta