Automatic SETRANGE by user Selection

BobBretonBobBreton Member Posts: 7
edited 2003-12-05 in Navision Attain
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

Comments

  • nelsonnelson Member Posts: 107
    Hi,

    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!
    Nelson Alberto
  • BobBretonBobBreton Member Posts: 7
    CurrForm.SETSELECTIONFILTER(Rec);

    REPORT.RUNMODAL(50001, FALSE, FALSE, Rec);


    Why does this not work?
    RKB
  • nelsonnelson Member Posts: 107
    Using that code I think you need to get up from your chair and go check the printer. :D

    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:
    CurrForm.SETSELECTIONFILTER(Rec);
    REPORT.RUNMODAL(50001,TRUE,FALSE,Rec);
    
    Nelson Alberto
  • BobBretonBobBreton Member Posts: 7
    Thanks, I had another issue... Works Fantastic!
    RKB
Sign In or Register to comment.