DataRights(Row: Integer; Column: Integer): CubeDataRights;
Row. Row index.
Column. Column index.
The DataRights property returns the information about the data access permissions for a defined cell.
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. Workbook of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
EaxAn: IEaxAnalyzer;
Laner: ILaner;
Tbl: ILanerTable;
Col, Row: Integer;
Begin
EaxAn := UiErAnalyzer1.ErAnalyzer;
Laner := EaxAn.Laner;
Tbl := laner.Execute;
Tbl.Edit;
For Col := 0 To Tbl.ColumnCount - 1 Do
For Row := 0 To Tbl.RowCount - 1 Do
If Tbl.DataRights(Row, Col) = CubeDataRights.ReadWrite Then
Tbl.Cell(Row, Col) := Math.RandBetweenI(0, 5);
End If;
End For;
End For;
End Sub Button1OnClick;
After executing the example the data in the table cells is changed if the data read and change access permissions are available.
See also: