Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
rrawson Honored Contributor.
Honored Contributor.
84 views

UA Intercept no invocation.proceed() not stopping submission

Sprinkled with trace code in this to validate flow. Even if you don't return invocation.proceed() the submit proceeds anyway. 

Identity Manager Roles Based Provisioning Module Version 4.6.2.1
Build Revision 45048

form.interceptAction("SubmitAction", "before", function () {
form.alert("Verifying Submission");
var fieldScope = form.getAllValues("SERrequired")[0];

field.fireEvent("selectAll")
var errors = false;

if (!mandatoryMPI()) {
field.fireEvent("showError","epicSERIdentityTypes");
form.alert("epicSERIdentityTypes");
errors = true;
} else {
visine("epicSERIdentityTypes");
}


for (var i=0; i < dropdowns.length; i++) {
if ((fieldScope.indexOf(dropdowns[i]) != -1) && (form.getValue(dropdowns[i]) == "")) {
field.fireEvent("showError",dropdowns[i]);
form.alert(dropdowns[i]);
errors = true;
} else {
visine(dropdowns[i]);
}
}

if (!errors) {
form.alert("returning invocation.proceed()");
var result = invocation.proceed();
return result;
}
form.alert("end");
})

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.