ITabCellStyle.AccessRights

Syntax

AccessRights: TabAccessRights;

Description

The AccessRights property sets access permissions for the data used for this style.

Comments

Data access permissions can be limited using authorization objects or cube segments.

Full access to data is used by default. If the property returns TabAccessRights.NoAccess or TabAccessRights.Write, take into account the following constraints:

Example

Executing the example requires a regular report with the REGULAR_REPORT identifier.

Add links to the Metabase, Report and Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    TabSheet: ITabSheet;
    Style: ITabCellStyle;
Begin
    MB := MetabaseClass.Active;
    // Get regular report
    Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
    // Get table
    TabSheet := (Report.ActiveSheet As IPrxTable).TabSheet;
    // Get cell range displaying style
    Style := TabSheet.ParseRange("C3:C6").Style;
    // View access permissions for range data
    Debug.WriteLine(Style.AccessRights);
End Sub UserProc;

After executing the example the development environment console displays the current user permissions for data of the specified cell range on an active report sheet.

See also:

ITabCellStyle