Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Version: Available or changed with runtime version 1.0.
Sets a filter on a record that is referred to by a RecordRef.
Syntax
RecordRef.SetRecFilter()
Parameters
RecordRef
Type: RecordRef
An instance of the RecordRef data type.
Remarks
This method works the same as the SetRecFilter Method (Record).
Example
The following example opens the Customer table as a RecordRef variable that is named MyRecordRef. The SetRecFilter method sets the values in the current key of the current record as a record filter. The GetFilters Method (RecordRef) retrieves the filters that have been set and displays them in a message box. No. is displayed because the filter is set on the No. field, which is the current key.
var
MyRecordRef: RecordRef;
varFilters: Text;
Text000: Label 'The filter is set on the %1 field.';
begin
MyRecordRef.Open(Database::Customer);
MyRecordRef.SetRecFilter;
varFilters := MyRecordRef.GetFilters;
Message(Text000, varFilters);
end;
Related information
RecordRef Data Type
Get Started with AL
Developing Extensions