Ok, so I have a cycle in procedure error, I have refactored the code and attempted different logic, but to no avail.
I attempted to disable the write triggers of the offending table, but that of course does not work (As I learned from experience and from the KB).
I decided then to manually override the trigger by creating a global shared variable that I check for in the beginning of the write trigger. If the variable is greater than 0, I skip the entire contents of the trigger using an if/then statement.
But the trigger is not being called as part of the procedure stack so it dosent pick up the global variable!!
How do I get my global variable value to be picked up in the write trigger??
I attempted to disable the write triggers of the offending table, but that of course does not work (As I learned from experience and from the KB).
I decided then to manually override the trigger by creating a global shared variable that I check for in the beginning of the write trigger. If the variable is greater than 0, I skip the entire contents of the trigger using an if/then statement.
But the trigger is not being called as part of the procedure stack so it dosent pick up the global variable!!
How do I get my global variable value to be picked up in the write trigger??