I have the read function, i want to make sure that value for parameter is present, if not cancel the read event. How can i cancel the ajax Call from within Read ?
read: {
url: function (e) {
try {
//var OrgHeadQrtrID_PK = 0;
if (e.orgHeadQuarterIdPK == null)
**--not sure how to cancel this read**
return baseURL + "/GetOrgs";
} catch (e) {
console.error("Error occured in the read method of module " + moduleName);
console.trace();
}
}, // "/PutOrgSchool",