Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Filter.prototype.calcRequestFieldID = function () {
this._requestFieldID = this.fieldid;
this._requestMinID = this.minid;
this._requestMaxID = this.maxid;
switch (this.rule) {
case "<":
case "<=":
if (Utility.endsWith(this.fieldid, "-max")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
case ">":
case ">=":
if (Utility.endsWith(this.fieldid, "-min")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
break;
case "set":
if (Utility.endsWith(this.fieldid, "-set")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_set" : "");
}
break;
case "range":
if (Utility.endsWith(this.minid, "-min")) {
Filter.prototype.calcRequestFieldID = function () {
this._requestFieldID = this.fieldid;
this._requestMinID = this.minid;
this._requestMaxID = this.maxid;
switch (this.rule) {
case "<":
case "<=":
if (Utility.endsWith(this.fieldid, "-max")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
case ">":
case ">=":
if (Utility.endsWith(this.fieldid, "-min")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
break;
case "set":
if (Utility.endsWith(this.fieldid, "-set")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_set" : "");
}
break;
case "range":
if (Utility.endsWith(this.minid, "-min")) {
this._requestMinID = this.minid.substring(0, this.minid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
if (Utility.endsWith(this.maxid, "-max")) {
this._requestMaxID = this.maxid.substring(0, this.maxid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
case ">":
case ">=":
if (Utility.endsWith(this.fieldid, "-min")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
break;
case "set":
if (Utility.endsWith(this.fieldid, "-set")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_set" : "");
}
break;
case "range":
if (Utility.endsWith(this.minid, "-min")) {
this._requestMinID = this.minid.substring(0, this.minid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
if (Utility.endsWith(this.maxid, "-max")) {
this._requestMaxID = this.maxid.substring(0, this.maxid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
}
};
this._requestMaxID = this.maxid;
switch (this.rule) {
case "<":
case "<=":
if (Utility.endsWith(this.fieldid, "-max")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
case ">":
case ">=":
if (Utility.endsWith(this.fieldid, "-min")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
break;
case "set":
if (Utility.endsWith(this.fieldid, "-set")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_set" : "");
}
break;
case "range":
if (Utility.endsWith(this.minid, "-min")) {
this._requestMinID = this.minid.substring(0, this.minid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
if (Utility.endsWith(this.maxid, "-max")) {
this._requestMaxID = this.maxid.substring(0, this.maxid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
}
};
case ">":
case ">=":
if (Utility.endsWith(this.fieldid, "-min")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
break;
case "set":
if (Utility.endsWith(this.fieldid, "-set")) {
this._requestFieldID = this.fieldid.substring(0, this.fieldid.length - 4) + (this.datasource.isRoxie() ? "_set" : "");
}
break;
case "range":
if (Utility.endsWith(this.minid, "-min")) {
this._requestMinID = this.minid.substring(0, this.minid.length - 4) + (this.datasource.isRoxie() ? "_min" : "");
}
if (Utility.endsWith(this.maxid, "-max")) {
this._requestMaxID = this.maxid.substring(0, this.maxid.length - 4) + (this.datasource.isRoxie() ? "_max" : "");
}
break;
}
};