Hidden filter when calling a form from Item LedgerE

gregaborgregabor Member Posts: 8
edited 2008-08-28 in Navision Attain
Hi there,
I have a form 38 Item Ledger Entries which has a Source No. field, on which the assist button calls e.g. Customer table, namely form 22 Customer List. I only get active customers, i can tell that by using GETFILTER onOpen form 22.
I am breaking my head to find where this filter is being set, can anyone please give me a hint?

Thanks in advance and hello to all (my first post)!
Greg

Answers

  • krikikriki Member, Moderator Posts: 9,115
    Probably the filter is set in the OnAssist-trigger (or a function called in that trigger).
    Probably it is user a FILTERGROUP to hide the filter on the form.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • gregaborgregabor Member Posts: 8
    Where can I can find that trigger and/or Filtergroup definition?
  • krikikriki Member, Moderator Posts: 9,115
    -Go into design.
    -Select the field with the assistbutton.
    -Hit F9
    -Check the OnAssist-trigger.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • gregaborgregabor Member Posts: 8
    There is onAssistEdit trigger, however it is empty. Mind you, that is a list type form. Anywhere else it can be?

    Really thankful for your help! :oops:
  • kinekine Member Posts: 12,562
    gregabor wrote:
    Hi there,
    I have a form 38 Item Ledger Entries which has a Source No. field, on which the assist button calls e.g. Customer table, namely form 22 Customer List. I only get active customers, i can tell that by using GETFILTER onOpen form 22.
    I am breaking my head to find where this filter is being set, can anyone please give me a hint?

    Thanks in advance and hello to all (my first post)!
    Greg

    For me it seems that someone set the filter on the Lookup form for customers - open the form in designer and look for SourceTableView property of the form.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • gregaborgregabor Member Posts: 8
    SourceTableView was the first thing I checked and unfortunatelly it is <Undefined> :?

    To provide more details, the form that is being called and is displaying only inactive customers, has this in the OnOpenForm:
    FILTERGROUP(3);
    
    IF GETFILTER(Inactive) = '' THEN
      SETRANGE(Inactive, FALSE);
    
    FILTERGROUP(0);
    

    I don't quite understand what filtergroup actually means or where it is defined.
  • kinekine Member Posts: 12,562
    Filter group means that the filter is set in another "level" than user can define/change. It means that it is not visible and the user cannot remove it.

    The code is customization made on request...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    gregabor wrote:

    I don't quite understand what filtergroup actually means or where it is defined.

    In this case you really should contact your NAV partner for assistance.

    I know that the forums can help for learning, but here you have custom code that they modified for you, so best is to work with them to solve it.
    David Singleton
  • gregaborgregabor Member Posts: 8
    Thanks everyone to guide me through this, i didn't know where the problem was hidden. Filtergroup is something i just learned about - very nice thing 8)
  • krikikriki Member, Moderator Posts: 9,115
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.