ITabView.DisplayAccessRights

Syntax

DisplayAccessRights: Boolean;

Description

The DisplayAccessRights property determines whether the icons () showing access permissions are to be displayed.

Comments

Available values:

Fore Example

To execute the example a form with a button named Button1 on it, the TabSheetBox component, and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source for TabSheetBox are required. An express report must be loaded to UiErAnalyzer1.The IPivot.CalculateDataRights property determines whether data access permissions should be calculated.

Add links to the Pivot, Tab, Express system assemblies.

This example is executed on clicking the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    EaxAn: IEaxAnalyzer;
    Pivot: IPivot;
    Grid: IEaxGrid;
    TabView: ITabView;
Begin
    EaxAn := UiErAnalyzer1.ErAnalyzer;
    Pivot := EaxAn.Pivot;
    Pivot.CalculateDataRights := True;
    Grid := EaxAn.Grid;
    TabView := Grid.TabSheet.View;
    TabView.DisplayAccessRights := True;
End Sub Button1OnClick;

After executing the example, the table displays icons designating that there are data access permissions.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Pivot;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Tab;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    EaxAn: EaxAnalyzer;
    Pivot: IPivot;
    Grid: IEaxGrid;
    TabView: ITabView;
Begin
    EaxAn := uiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
    Pivot := EaxAn.Pivot;
   Pivot.CalculateDataRights := True;
    Grid := EaxAn.Grid;
    TabView := Grid.TabSheet.View;
    TabView.DisplayAccessRights := True;
End Sub;

See also:

ITabView; CalculateDataRight;