In the Table and Page objects, the system automatically provides us with the system variables, Rec and xRec. Until a record has been updated by MODIFY, Rec represents the current record data in process and xRec represents the record data before it was modified. By comparing field values in Rec and xRec, we can determine if changes have been made to the record in the current process cycle. Rec and xRec records have all the same fields in the same structure as the table to which they relate.
Rec and xRec
Get Programming Microsoft Dynamics NAV - Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.