# lockAll method

Information note**STABLE.**   
  
This API is reliable and breaking changes are unlikely.

qlik.app.lockAll(state)

Locks all selections.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 1.0 |
| Updated | 2.1 |

## Parameters

### state

Type: String

Optional. Alternate state name.

Default: $

Introduced in version 2.1.

## Returns

A promise of a Qlik associative engine reply.

Tip noteFor more information regarding a promise, see [The Promise API](https://code.angularjs.org/1.5.8/docs/api/ng/service/$q#the-promise-api).

## Example

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