Description
A script to hide a New button on a form's related list does not work in a scoped application.
Steps to Reproduce
-
Create a scoped application.
-
Create a parent table in the scoped application.
-
Create a child table in the scoped application.
-
On the parent table form, define a related list using the child table.
-
Edit the List control for the child table records as follows:
var answer;
if(parent.active == 'true'){
answer = true;
}
else{
answer=false;
} -
Refresh the parent record and then view the localhost log.
Example entry found in the log:
05/18/16 10:20:08 (764) BF4699944F23DA00CDF07D2CA310C7DA Evaluator: org.mozilla.javascript.EcmaError: "parent" is not defined. Caused by error in sys_ui_list_control.932b96c44f2b5e007ee5fd218110c772 at line 2
Workaround
No workaround exists at this time.
Related Problem: PRB677747