Partager via


SETRECFILTER Function (Record)

Sets the values in the current key of the current record as a record filter.

Syntax

  
Record.SETRECFILTER  

Parameters

Record
Type: Record

Specifies the current record for which you want to set the filter.

Example

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.

Variable name DataType Subtype
CustomerRec Record Customer
CustomerRec.SETRECFILTER;  
REPORT.RUN(REPORT::"111",FALSE,FALSE,CustomerRec);   

See Also

Record Data Type