The IsDisabled property of the Level interface indicates whether the level is disabled.
| clsAggregationLevel | clsPartitionLevel |
| clsCubeLevel |
Boolean
The access type depends on the level object class.
| Class | Access |
|---|---|
| clsCubeLevel | R/W |
| clsCubeLevel (for virtual cubes) | R |
| clsPartitionLevel | R |
| clsAggregationLevel | R |
If a level is disabled, it does not show up in a processed cube (that is, you cannot see the level when querying the cube using MDX).
Note When a level is disabled, all subordinate levels are automatically disabled. When a level is enabled, all higher levels are automatically enabled. At least one level must be enabled.
Use the following code to disable a level object:
' Assume an object (dsoCubeLevel) of ClassType clsCubeLevel exists
dsoCubeLevel.IsDisabled = True
| About Decision Support Objects | Using Decision Support Objects |
| Properties Cross-Reference |