Friday, June 13, 2014

Trigger register error #2 - SY_INVALID_SCRIPT

Problem
I want to contain all code for a certain module in one form. When i go to register a focus trigger against 'Save Button' on a form, and set the processing script to a script on my form, it is giving me registration error #2, which means the processing script is invalid.

Solution
Apparently you cannot specify a script that is contained in a form for a focus trigger. It has to be a global script.

Comments
No wonder this legacy code has 100's of global scripts, it's forced. This had lead to an epic mess because these scripts can't be logically organized.

No comments:

Post a Comment

There was an error in this gadget