ShowName: Boolean;
The ShowName property determines the state of the Show Name checkbox.
Available values:
True. Default value. The checkbox is selected
False. The checkbox is deselected.
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;
// The current data entry form instance
DEForm := New DataEntryForm.CreateByReport(Report);
// Get table area
TArea := DEForm.InputAreas.Item(0) As IDefTableArea;
TArea.ShowName := False;
TArea.ShowTitles := False;
End Sub HideNameAndTitles;
When the macro is executed, displaying of name of heading/sidehead is disabled for the table area if there are no selection by sidehead/heading dimensions, respectively.
See also: