ShowAccessCells: Boolean;
The ShowAccessCells property determines whether cells will display access permission icons.
The property is set to True by default, and a user data access permissions icon will be displayed in cells:
If there user has only read permissions, the cell will display the icon and the value.
If the user does not have read permissions, the cell displays only the icon.
If there are permission constraints for calculated cells, two icons will be displayed: and .
If the ShowAccessCells property is set to False, the access permissions icon will not be displayed.
Executing the example requires that the repository contains a data entry form, for which the specified macro is set as an executable method for a custom button. A table area is created in the data entry form.
Add links to the Metabase, Report system assemblies. Add links to the assemblies required for working with data entry forms.
Public Sub HideNameAndTitles(Report: IPrxReport);
Var
Mb: IMetabase;
DEForm: IDataEntryForm;
TArea: IDefTableArea;
Begin
Mb := MetabaseClass.Active;
// Current data entry form instance
DEForm := New DataEntryForm.CreateByReport(Report);
// Get table area
TArea := DEForm.InputAreas.Item(0) As IDefTableArea;
TArea.ShowAccessCells := False;
TArea.ShowEvalCells := False;
End Sub HideNameAndTitles;
When the macro is executed, displaying of access permission icons and calculated cells will be disabled for a table area.
See also: