I've got a custom field, and it's working great for filtering, editing, and inserting.
I'm using the filterValue, insertValue, and editValue functions in the custom field to do some data manipulation before things happen in order to make it work. That's all fine.
What I can't do nicely is anything before a record is deleted. The only way I've got to do something is using onDeleting, but that's got to be done for each table where I use the custom field, whereas I'd like to make the code a part of the field definition.
Hi this is a request for help.
I've got a custom field, and it's working great for filtering, editing, and inserting.
I'm using the filterValue, insertValue, and editValue functions in the custom field to do some data manipulation before things happen in order to make it work. That's all fine.
What I can't do nicely is anything before a record is deleted. The only way I've got to do something is using onDeleting, but that's got to be done for each table where I use the custom field, whereas I'd like to make the code a part of the field definition.
Is there a way to do this nicely?