Vendor/Customer Ledger Entries Form - Open=Yes Filter

Jonathan2708Jonathan2708 Member Posts: 552
Hi,

I want to create a one-click 'toggle' button on the vendor & customer ledger entries form to change between all entries and open entries only, to save the users have to go the table filter envery time. NAV 2009 Classic defaults to Open entries only, but I can't seem to override this filter using C/AL code. I've tried using various FILTERGROUPs but to no avail. Can anybody help on this one?

Jonathan

Comments

  • ara3nara3n Member Posts: 9,256
    Here is the code that you can add onpush trigger.
    IF (GETFILTER(Open) <> '') THEN
      SETRANGE(Open)
    ELSE
      SETRANGE(Open,TRUE);
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.