IUserDimAttributes.ReadAccess

Syntax

ReadAccess: IUserDimAttribute;

Description

The ReadAccess property determines dictionary attribute that limits read access to records.

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 calculated dictionary with the USER_DIM identifier.

Add links to the Metabase and Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimAts: IUserDimAttributes;
    UsDimAttr: IUserDimAttribute;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimAts:=UsDim.Attributes;
    UsDimAttr:=UsDimAts.ReadAccess;
    If UsDimAttr<>Null Then
        i:=UsDimAttr.Key;
        Debug.WriteLine(i);
    End If;
End Sub UserProc;

After executing the example the "i" variable contains the attribute key that limits read access for calculated dictionary entries, if this attribute is selected.

See also:

IUserDimAttributes | ISecurityLabels