Usage of CurrPage.SetSelectionFilter()

rcverbeekrcverbeek Member Posts: 18
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

Sign In or Register to comment.