How to get original value for table fields during record modification

Use table method orig(). It returns the orig buffer which is the committed version of the record in the database.