ITableFilter.Features

Syntax

Features: TableFilterFeatures.

Description

The Features property determines the displayed settings in the table filtering menu.

Example

Executing the example requires that the repository contains a report with the REPORT identifier.

Add links to the Metabase, Report and Tab system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    mObj: IMetabaseObject;
    Rep: IPrxReport;
    Tab: ITabSheet;
    Sheet: IPrxTable;
    TRange: ITabRange;
    AutoFilter: ITabAutoFilter;
    View: ITabView;
Begin
    // Get repository
    mb := MetabaseClass.Active;
    // Get report
    mObj := mb.ItemById("REPORT").Edit;
    Rep := MObj As IPrxReport;
    // Get table
    Sheet := Rep.Sheets.Item(0As IPrxTable;
    Tab := Sheet.TabSheet;
    View := Tab.View;
    // Set autofilter
    TRange := View.Selection.Range;
    AutoFilter := Tab.View.AutoFilter;
    // Enable autofilter
    AutoFilter.Range := TRange;
    AutoFilter.Enabled := True;
    // Hide filtering settings from menu
    AutoFilter.Features := TableFilterFeatures.HideSettings;
    // Save report
    mObj.Save;
End Sub UserProc;

After executing the example the Set Up Filtering item is hidden in the filtering menu.

See also:

ITableFilter