Options

Usage of CurrPage.SetSelectionFilter()

rcverbeekrcverbeek Member Posts: 32
Hi,

I have got a question about this standard C/AL code. It is in Page 132 (Posted Sales Invoice):
SalesInvHeader := Rec;
CurrPage.SETSELECTIONFILTER(SalesInvHeader);
SalesInvHeader.PrintRecords(TRUE);

What is the first line of code doing here? It kind of looks like its selectiong only the current record. But if so, why not replace the three lines of code with a single line
PrintRecords(TRUE)

Thanks!

Best Answer

Answers

  • Options
    rcverbeekrcverbeek Member Posts: 32
    Thanks Aluan, this makes sense!
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    Currpage.SETSELECTIONFILTER(Rec) is same as Record.SETRECFILTER;

    It gives you all the filters that is manually selected by the user!
Sign In or Register to comment.