It's a bad idea. DEL_ fields are considered deleted (and will be deleted in the next version); they exist only for upgrade purposes and their configuration key should be disabled right after upgrade. Therefore if you system is configured correctly, your code wouldn't do anything, because the value of DEL_Name would never get saved. Also, what's the point of updating data in active() method? Is your intention to leave non-matching names if the user never explicitly activate the record in grid? Why? And why you do the check every time when the record gets activated? I think you should run your logic as part of the import, not in the form.
↧