Hi, I have defined a global variable on a Record : ReadonlySuspended. On delete trigger raise an error if not ReadonlySuspended. A function SuspendReadOnly sets this global variable. I write the following code : rec.suspendReadonly(TRUE); rec.DELETEALL(TRUE); On Delete trigger ReadonlySuspended global variable is FALSE. Appreciate any help.
Could you maybe post the table function which set’s the variable in here ?
The problem is use of DELETEALL. It initiates all global variables for each record. Instead you will have to make you own FIND-REPEAT-SetGlobal-DELETE(TRUE)-NEXT loop. It is a bit slower but it works