bout the application
The application Deleting child nodes illustrates how to delete child records when a record is deleted from the parent form.The applicationcomprises of two forms:
When a record is deleted from the parent form (Client form), the on delete -> on validate script added to this form will delete all the child records corresponding to this client, from the Client Details form. To add the script in the Client form,
on delete
{
on validate
{
delete from Client_Details[ Client_Name == input.Name ];
}
}
The above script will delete the records from the Client Details form and then delete its parent record from the Client form.