Application Framework Reference

Splunk API

setIntentions()

The setIntentions() method replaces the current search intentions with the specified intentions.

Synopsis

results = setIntentions( intentionsList )

Parameters

intentionsList

Array

Intentions list.

Return Value

Undefined

Example

setNewIntentions: function(intentionsList) {    var context = this.getContext();
    var search = context.get('search');
    search.setIntentions(intentionsList);
    context.set('search', search);
},
 

See Also

absorbIntentions()
addIntention()
clearIntentions()
getIntentionReference()
hasIntentions()
popIntention()