# SetActiveField Method

## Overloads

| [SetActiveField(String, Int32, Int32)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetActiveField.htm#Qlik_Engine_IGenericObject_SetActiveField_System_String_System_Int32_System_Int32_) |  | You can use the SetActiveField method with any object that contains a cyclic group as a dimension.<br><br>This method allows you to jump to a specific field in a cyclic dimension. If NewIndex is out-of-bounds of the dimension's fields then no action is taken.<br><br>A hypercube will avoid field collisions with its other dimensions when setting the active field in this manner. If there are any collisions then no action is performed. |
| --- | --- | --- |

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

## SetActiveField(String, Int32, Int32)

You can use the SetActiveField method with any object that contains a cyclic group as a dimension.

This method allows you to jump to a specific field in a cyclic dimension. If NewIndex is out-of-bounds of the dimension's fields then no action is taken.

A hypercube will avoid field collisions with its other dimensions when setting the active field in this manner. If there are any collisions then no action is performed.

### Declaration

```

          void SetActiveField([QixName("qPath")] string path, [QixName("qDimNo")] int dimNo, [QixName("qNewIndex")] int newIndex)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the object to be selected.<br>For example, `/qHyperCubeDef` . |
| System.Int32 | dimNo | Dimension number or index starting from 0.<br>The default value is 0. |
| System.Int32 | newIndex | Index of the field to jump to. |