WriteAccess: IUserDimAttribute;
The WriteAccess property determines dictionary attribute, that limits permissions to change data of the given element in OLAP.
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.
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.WriteAccess;
If UsDimAttr<>Null Then
i:=UsDimAttr.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: