Back

Editing, Updating and Creating Records
eventPostDeleteSQL
Name of function to call after record is deleted. The function is passed 3 parameters. The first parameter is $key, the primary key. The second is $deleteok which is set to true if the record was deleted correctly. The 3rd parameter is the $lens object. Syntax `$lens->postDeleteSQL = 'DeleteChildren'; function DeleteChildren($key,$ok,$lens) { if ($ok) $lens->connection->Execute( "delete * from childtable where parentid=$key" ); }` Basic:No Advanced/Enterprise:Yes DynamicEdit:No [Version 1.0]