Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Predefined actions

Events. Save new data in another table

Scroll Prev Next More

 

Save new data in another table action allows copying added or modified data to another table. This table should be a part of the project.

 

Available in the following events:

Add page: Before record added

Edit page: Before record updated

save_new_data_in_another_table_select_action

 

 

 

'**********  Save new data in another table (VB)  ************
dim data
data = XVar.Array()
data("make") = values("make")
data("model") = values("model")
data("price") = values("price")
DB.Insert("copy_of_cars", data)

 

//**********  Save new data in another table (C#) ************
dynamic data = XVar.Array();
data["make"] = values["make"];
data["model"] = values["model"];
data["price"] = values["price"];
DB.Insert("copy_of_cars", data);

See also

Database API

Database API: Insert        

Save old data in another table

Insert a record into another table