client/splunk.js
function(){
            var fields = {};
            // Iterate over the calculations, get their fields
            var keys = this.calculationIDs();
            var calculations = this.calculations;
            for (var i = 0; i < keys.length; i++) {
                var calculation = calculations[keys[i]];
                for (var f = 0; f < calculation.outputFieldNames().length; f++) {
                    fields[calculation.outputFieldNames()[f]] = calculation.outputFields[calculation.outputFieldNames()[f]];
                }
            }
            return fields;
        }
function(){
            var fields = {};
            // Iterate over the calculations, get their fields
            var keys = this.calculationIDs();
            var calculations = this.calculations;
            for (var i = 0; i < keys.length; i++) {
                var calculation = calculations[keys[i]];
                for (var f = 0; f < calculation.outputFieldNames().length; f++) {
                    fields[calculation.outputFieldNames()[f]] = calculation.outputFields[calculation.outputFieldNames()[f]];
                }
            }
            return fields;
        }
function ( ) { var fields = { } ; // Iterate over the calculations, get their fields var keys = this . calculationIDs ( ) ; var calculations = this . calculations ; for ( var i = 0 ; i < keys . length ; i ++ ) { var calculation = calculations [ keys [ i ] ] ; for ( var f = 0 ; f < calculation . outputFieldNames ( ) . length ; f ++ ) { fields [ calculation . outputFieldNames ( ) [ f ] ] = calculation . outputFields [ calculation . outputFieldNames ( ) [ f ] ] ; } } return fields ; }
Returns an array of data model fields from this data model object's
calculations.

@return {Array} An array of `splunk.Service.DataModelField` objects
of the fields from this data model object's calculations.

@method splunkjs.Service.DataModelObject
Returns an array of data model fields from this data model object s calculations .