IPivot.CalculateDataRights

Syntax

CalculateDataRights: Boolean;

Description

The CalculateDataRights property determines whether data access permissions should be calculated. True - to calculate access permissions, False - do not calculate access permissions. Data is calculated

Access permissions can be displayed if a time series database is used as a data source. Data range access permissions are determined in the security manager on the Discretionary Access Control tab.

Fore Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. An express report should be loaded to UiErAnalyzer1. Displaying icons is determined by the ITabView.DisplayAccessRights property.

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

Click the button to start executing the example.

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 the icons indicating whether there are access permissions to data.

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:

IPivot; DisplayAccessRights;