Sets the values in the current key of the current record as a record filter.
- Type: Record Specifies the current record for which you want to set the filter.
You can use this function to set a filter on a table before you run a report. Enter C/AL code similar to the following example in the OnAction Trigger of an action on a page. When the code is triggered, the current key fields of the current record in the page will be used as a filter when the report is run.
This example requires that you create the following variable in the C/AL Globals window.