Save old data in another table action allows saving the old data in another table when the record is updated or deleted. This table should be a part of the project.
Available in following events:
•Edit page: Before record updated
•List page: Before record deleted
Example 1. Direct SQL query
'********** Save old data record in another table (VB) ************
dim data
data = XVar.Array()
data("make") = oldvalues("make")
data("model") = oldvalues("model")
data("price") = oldvalues("price")
DB.Insert("copy_of_cars", data)
Example 2. Database API
//********** Save old data record in another table (C#) ************
dynamic data = XVar.Array();
data["make"] = oldvalues["make"];
data["model"] = oldvalues["model"];
data["price"] = oldvalues["price"];
DB.Insert("copy_of_cars", data);
See also:
•Save new data in another table
•Insert a record into another table