client/splunk.js
function(fieldName, trueDisplayValue, falseDisplayValue) {
            if (!this.dataModelObject.fieldByName(fieldName)) {
                throw new Error("Did not find field " + fieldName);
            }
            var f = this.dataModelObject.fieldByName(fieldName);
            if ("boolean" !== f.type) {
                throw new Error("Field was of type " + f.type + ", expected boolean.");
            }

            this.columns.push({
                fieldName: fieldName,
                owner: f.owner,
                type: f.type,
                trueLabel: trueDisplayValue,
                falseLabel: falseDisplayValue
            });

            return this;
        }
function(fieldName, trueDisplayValue, falseDisplayValue) {
            if (!this.dataModelObject.fieldByName(fieldName)) {
                throw new Error("Did not find field " + fieldName);
            }
            var f = this.dataModelObject.fieldByName(fieldName);
            if ("boolean" !== f.type) {
                throw new Error("Field was of type " + f.type + ", expected boolean.");
            }

            this.columns.push({
                fieldName: fieldName,
                owner: f.owner,
                type: f.type,
                trueLabel: trueDisplayValue,
                falseLabel: falseDisplayValue
            });

            return this;
        }
function ( fieldName , trueDisplayValue , falseDisplayValue ) { if ( ! this . dataModelObject . fieldByName ( fieldName ) ) { throw new Error ( "Did not find field " + fieldName ) ; } var f = this . dataModelObject . fieldByName ( fieldName ) ; if ( "boolean" !== f . type ) { throw new Error ( "Field was of type " + f . type + ", expected boolean." ) ; } this . columns . push ( { fieldName : fieldName , owner : f . owner , type : f . type , trueLabel : trueDisplayValue , falseLabel : falseDisplayValue } ) ; return this ; }
Add a column split on a boolean valued field.

@param {String} fieldName The name of field to split on.
@param {String} trueDisplayValue A string to display in the true valued column label.
@param {String} falseDisplayValue A string to display in the false valued column label.
@return {splunkjs.Service.PivotSpecification} The updated pivot specification.

@method splunkjs.Service.PivotSpecification
Add a column split on a boolean valued field .