# SelectListObjectAlternative Method

## Overloads

| [SelectListObjectAlternative(String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SelectListObjectAlternative.htm#Qlik_Engine_IGenericObject_SelectListObjectAlternative_System_String_System_Boolean_) |  | Selects all alternative values in a specific field.<br><br>The member **Change** returns the handles of the objects that are updated following the selections.<br><br><br>`qSuccess` is set to `true` if the selections are successful and is set to `false` in the following cases:<br><br>\* The object contains some invalid fields (fields that are not in the data model).<br><br>\* The selection applies to a locked field.<br><br>\* A range selection is performed and the parameter `OneAndOnlyOne` is set to true in the definition of the object. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SelectListObjectAlternative.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SelectListObjectAlternative.htm)

## SelectListObjectAlternative(String, Boolean)

Selects all alternative values in a specific field.

The member **Change** returns the handles of the objects that are updated following the selections.

`qSuccess` is set to `true` if the selections are successful and is set to `false` in the following cases:

* The object contains some invalid fields (fields that are not in the data model).
* The selection applies to a locked field.
* A range selection is performed and the parameter OneAndOnlyOne is set to true in the definition of the object.

### Declaration

```

          bool SelectListObjectAlternative([QixName("qPath")] string path, [QixName("qSoftLock")] bool softLock = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the object to be selected.<br>For example, `/qListObjectDef` . |
| System.Boolean | softLock | Set to true to ignore locks; in that case, locked fields can be selected.<br>The default value is false. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Remarks

This method applies to list objects (objects with one dimension).