Skip to main content

clearAll method

ON THIS PAGE

clearAll method

Note: STABLE.

This API is reliable and breaking changes are unlikely.

qlik.app.clearAll(lockedAlso, state)

Clears all selections in all fields of the current Qlik Sense app.

Version history

Introduced 1.0
Updated 2.1

Parameters

lockedAlso

Type: Boolean

Optional. Also clear locked fields.

Default: false

Introduced in version 2.1.

state

Type: String

Optional. Alternate state name.

Default: $

Introduced in version 2.1.

Returns

A promise of a Qlik associative engine reply.

Tip: For more information regarding a promise, see https://code.angularjs.org/1.7.0/docs/api/ng/service/$q#the-promise-api.

Example

var app = qlik.openApp('2abac31e-3b46-4b78-8bxf-c5cea1d2514d', config);
  app.clearAll();