Application Framework Reference

Splunk API

setPreviewable()

The setPreviewable() method sets whether or not job results can be previewed before the job completes.

Note: Setting preview mode impacts search performance, considerably.

Synopsis

setPreviewable( mode )

Parameters

mode

Boolean

Preview mode:

true = Job results can be previewed.

false = Job results cannot be previewed.

Example

var context = this.getContext();
var search = context.get('search');

search.job.setPreviewable(true);
 

See Also

isPreviewable()