I would like to use the Highlighted selection in Table view to SETRANGE on a filter. ie. When viewing the Invoice List, the user selects the first 5 records, I would like to batch print these records by SETRANGE. Is it possible to get this range that is selected, Every time I use REC it returns the First selected item, ignoring the others. I would even like to see a selection of 5 random records sent as a setrange. Is this possible?
RKB
0
Comments
Yes, it is possible.
Use the CurrForm.SETSELECTIONFILTER(Rec) function to store the selected records on the Form in the Record variable of your choice.
Try it!
REPORT.RUNMODAL(50001, FALSE, FALSE, Rec);
Why does this not work?
If you call the REPORT.RUNMODAL with FALSE in the 2nd parameter, it will completely bypass the Request Form and you will have no chance to even see the Report before it is sent to the Printer.
Try: