Returns a list of the filters within the current filter group
that are applied to a field.
|
String := Record.GETFILTER(Field)
|
Parameters
- Record
-
Type: Record
The input record.
- Field
-
Type: Field
The input field.
Property Value/Return Value
Type: Text constant or code
This string contains a list of the filters applied to the field
in the record.
Example
This example shows how to use the GETFILTER
function.
This example requires that you create the following
Global variables in the C/AL Globals window.
Variable name |
Data type |
Subtype |
String
|
Text
|
|
CustomerEntry
|
Record
|
Cust. Ledger Entry
|
This example requires that you create the following
text constant in the C/AL Globals window.
Text constant |
ENU value |
Text000
|
'The filter is:\%1'
|
|
Copy Code |
// Write the following code in the OnRun trigger.
CustomerEntry.SETRANGE(Amount, -100, 100);
String := CustomerEntry.GETFILTER(Amount);
MESSAGE(Text000, String);
|
The following message is displayed:
The filter is:
-100..100
See Also