Disable show all filter

ayashiayashi Member Posts: 78
hi guys, please help me to disable show all filter.

When I open itemcard, there's a field inventory which drill down into item ledger entry to its item. But if I push show all filter, the form would show all item information, how do I disable this ?

Thanks In Advanced

Comments

  • ara3nara3n Member Posts: 9,258
    on the form add the following code to the form 38
    Form - OnOpenForm()
    //S001 start
    ItemLedger2.COPYFILTERS(Rec);
    //S001 End
    
    Form - OnAfterGetRecord()
    //S001 start
    COPYFILTERS(ItemLedger2);
    //S001 End
    
    ItemLedger2 is variable of type record for item ledger entry.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ayashiayashi Member Posts: 78
    edited 2006-09-20
    whoaaa ara3n, brilliant ! thx a lot for replying.
  • krikikriki Member, Moderator Posts: 9,120
    You can also put the filters in another filtergroup.
    FILTERGROUP(6); // don't use filtergroups smaller than 6, they are reserved by Navision
    SETRANGE("Some Field",'Some Value');
    SETFILTER(.....);
    FILTERGROUP(0); // go back to the filtergroup in which the user can do what he wants.
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • kinekine Member Posts: 12,562
    May be better is to copy the filters into another filter group. The Show all clear just filters in filtergroup 0.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.