RecordRef.GetFilters() Method

Version: Available or changed with runtime version 1.0.

Determines which filters have been applied to the table referred to by the RecordRef.

Syntax

String :=   RecordRef.GetFilters()

Note

This method can be invoked using property access syntax.

Parameters

RecordRef
 Type: RecordRef
An instance of the RecordRef data type.

Return Value

String
 Type: Text
Filters that have been applied to the table that is referred to by the RecordRef parameter.

Remarks

This method works just like the GetFilters Method (Record).

Property Value/Return Value

Filters that have been applied to the table that is referred to by the RecordRef parameter.

Example

The following example opens a table as a RecorRef variable. The variable, RecRef, is used with the GetFilters method to retrieve the filters that are applied in the Customer table. If filters are applied, they will be stored in the Filters1 variable. The Filters1 variable does not contain any filters because filters have not been set. Then the SetRecFilter Method (RecordRef) is used to set the value in the current key of the current record as a filter. The variable Filters2 will now contain No. as a filter.

var
    RecRef: RecordRef;
    Filters1: Text;
    Filters2: Text;
    Text000: TexConst ENU='Filters1 contains : %1  Filters2 contains: %2';
begin   
    RecRef.Open(Database::Customer);  
    Filters1 := RecRef.GetFilters;  
    RecRef.SetRecFilter;  
    Filters2 := RecRef.GetFilters;  
    Message(Text000, Filters1, Filters2);  
end;

See Also

RecordRef Data Type
Get Started with AL
Developing Extensions