IStandardDimAttributes.WriteAccess

Syntax

WriteAccess: IStandardDimAttribute;

Description

The WriteAccess property determines dictionary attribute, that limits permissions to change data of the given element in OLAP.

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 table dictionary with the TAB_DIM identifier.

Add links to the Metabase and Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Dimens: IStandardDimension;
    DimAtrrs: IStandardDimAttributes;
    DimAtribut: IStandardDimAttribute;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimens:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;
    DimAtrrs:=Dimens.Attributes;
    DimAtribut:=DimAtrrs.WriteAccess;
    If DimAtribut<>Null Then
        i:=DimAtribut.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:

IStandardDimAttributes | ISecurityLabels