I have a web view which use a local variable $web. To save the loading time, I create a trigger on Layout/OnRecordLoad to clear $web when switching records:
set variable $web=""
However, the $web value is not cleared. I added the commit statement in the script, checked on debug, looked at the variable value. Everything was fine, until the script was completed the $web showed again the old value from the previous record.
Is this a bug or something I did was wrong? Please help, thanks.