ICustomDimAttributes.ReadAccess

Syntax

ReadAccess: ICustomDimAttribute;

Description

The ReadAccess property determines attribute which is used to limit read permission of specific element values.

Comments

If read access is not restricted, this property returns Null. When read access is limited, only the records with attribute value corresponding to 32-bit security mask can be read.

Example

Executing the example requires a standard cube with the CUBE identifier.

Add links to the Metabase, Cubes, Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Cube: IStandardCube;
    CustDim: ICustomDimension;
    CustAtrs: ICustomDimAttributes;
    CustAtribut: ICustomDimAttribute;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Cube:=MB.ItemById("CUBE").Bind As IStandardCube;
    CustDim:=Cube.FactDimension.Dimension As ICustomDimension;
    CustAtrs:=CustDim.Attributes;
    CustAtribut:=CustAtrs.ReadAccess;
    If CustAtribut<>Null Then
        i:=CustAtribut.Key;
        Debug.WriteLine(i);
    End If
End Sub UserProc;

After executing the example the console window displays key of the attribute that limits read access for dimension entries, if this attribute is selected.

See also:

ICustomDimAttributes | ISecurityLabels