How to use the @hpcc-js/common.Utility.endsWith function in @hpcc-js/common

To help you get started, we’ve selected a few @hpcc-js/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
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")) {
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
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;
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
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;
    }
};
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
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;
    }
};
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
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;
    }
};