Application Framework Reference

Splunk API

clearIntentions()

The clearIntentions() method empties the search object intentions list, undefining savedSearchName if it is defined.

This method should be called by modules that call absorbIntentions() , if leaving intentions could result in unexpected behavior in subsequent calls to absorbIntentions() .

Synopsis

clearIntentions()

Return Value

Undefined

Example

var context = this.getContext();var search = context.get('search');
search.absorbIntentions();
search.clearIntentions();
context.set('search', search);
return context;
 

See Also

absorbIntentions()
addIntention()
getIntentionReference()
hasIntentions()
popIntention()
setIntentions()