# Lock method

Locks the selected values of a generic object.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qPath | Path to the definition of the object.<br>For example, */qListObjectDef* . | Yes | String |
| qColIndices | Dimension numbers or dimension indexes where the lock should apply.<br>Dimension numbers/indexes start from 0.<br>If this parameter is not set, the selected values in all dimensions are locked. | No | Array of Integer |