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

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

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

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

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

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

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