open a filtered page

sharon95sharon95 Member Posts: 183
Hi all, how can I run a page from an action and see only filtered records I have set in the code? thank you!

Answers

  • sharon95sharon95 Member Posts: 183
    Solved with

    page.setrange("field",2);
    page.settableview(table);
    IF page.RUNMODAL = ACTION::LookupOK THEN BEGIN [...]
  • KishormKishorm Member Posts: 921
    Have a look at Codeunit 235 for an example of how to do this...
    GLEntry.SETRANGE("Entry No.","From Entry No.","To Entry No.");
    PAGE.RUN(PAGE::"General Ledger Entries",GLEntry);
    
    ... i.e. you set filters on a Record variable and then pass the Record variable to the Page.
Sign In or Register to comment.