ICustomDimAttributes.WriteAccess

Syntax

WriteAccess: ICustomDimAttribute;

Description

The WriteAccess property determines attribute which is used to limit edit permissions of specific element values.

Comments

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

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.WriteAccess;
    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 permissions to change dimension entries, if this attribute is selected.

See also:

ICustomDimAttributes | ISecurityLabels