Application Framework Reference

Splunk API

getAll()

The getAll() method is a generic getter that gets all values at or below the name namespace.

For example, given charting.chart.stackMode and charting.chart keys, calling getAll("charting") returns a map of hash values for the chart.stackMode and chart keys.

Synopsis

hash = getAll( name )

Parameters

name

String

key name for which the corresponding values are returned.

Return Value

Object

List of corresponding values at or below the name key. If name had no matching values, null is returned.

Note: This returns values and not a references to the values.

Example

getResultsDict: function() {
    var context = this.getContext()
    return context.getAll("results");
}

See Also

enforceByValue()
get()
set()