RecordRef.SetRecFilter() Method
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;
See Also
RecordRef Data Type
Get Started with AL
Developing Extensions
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour