Hi,
hope someone can assist me. I want to insert a record into another table via the OnAfterUpdate event on a form. When I use the example code given in Scriptcase as below, it works fine as it inserts the word ‘test’ in the other table, but I want to assign the value that already exists in the a field in the form to be inserted into the other table (which can change every time you update the form). Something like $projectadd = {project_request} and then use $projectadd as the value to be inserted into the projects table for the project_name field instead of ‘test’, but this comes back with an error once I run the app and click save. I’m sure I’m just assigning the variable wrong.
$insert_table = ‘projects’;
$insert_fields = array(
‘project_name’ => “‘test’”,
);
Any suggestion would be appreciated