...
-Updated email routing for the interim solution with skipping CPO review and going to the Controller.
(not in prod yet)
-added a new check for supervisor vs department head. Since delegates could potentially be used, new code has been added to check for if the designee is the same as the supervisor.
//onItemChange of designee table
var reviewerNetId = [];
var table = BO.F_DesigneeTable;
for (var i = 0; i < table.getLength(); i++) {
reviewerNetId.push(get(table.get(i),"F_DesigneeNetId").getValue());
}
BO.F_supervisornetidcheck.setValue(reviewerNetId.join(", "));
//code is placed onItemChange of new field for Designee NetIds
value = BO.F_supervisornetidcheck.getValue()
SupervisorNetId = BO.F_SupervisorNetId.getValue()
if (value.indexOf(SupervisorNetId) !== -1) {
BO.F_SupervisorException.setValue(true)
}
else { BO.F_SupervisorException.setValue(false)
}