ICustomDimension.HideInaccessibleElements

Syntax

HideInaccessibleElements: Boolean;

Description

The HideInaccessibleElements property determines whether inaccessible elements will be hidden.

Comments

This property is relevant if the ReadAccess and WriteAccess attributes are set for the dimension.

If the HideInaccessibleElements property is set to True (default value), on building there will be a check that security bit label of the current user corresponds to the security mask contained in the ReadAccess and WriteAccess attribute values. Elements with security mask value that does not include user security label are hidden or protected from editing.

Example

Executing the example requires a standard cube with the STD_CUBE identifier in the repository.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Cube: IStandardCube;

CustDim: ICustomDimension;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("STD_CUBE").Edit;

Cube := MObj As IStandardCube;

CustDim := Cube.FactDimension.Dimension As ICustomDimension;

CustDim.HideInaccessibleElements := False;

MObj.Save;

End Sub Main;

After executing the example displaying of hidden elements will be enabled for fact dimension.

See also:

ICustomDimension