web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

FilterGroup

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I have below code . How it work


IF UserSetup.GET(USERID) THEN
BEGIN
UserSetup.TESTFIELD("Location No.");
IF (UserMgt.GetUserInfo2(USERID) <> '' )THEN BEGIN
FILTERGROUP(2);
SETRANGE("Location No.",UserMgt.GetUserInfo2(USERID));
FILTERGROUP(0);
END;
END;
FILTERGROUP(2);

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    For more information about the filtergroup check this

    docs.microsoft.com/.../filtergroup-function--record-

    In simple terms filtergroup is just a group of all the filters you have applied.

    The default filter group is 0, so in the above case you have specified the FILTERGROUP 2 and applied the filter for Location code, then you changed the filtergroup to zero, but later again you changed the filtergroup to 2, so in the end you are in same filter group which you have used to applied the filters, it means the user can remove those filters.

    You need to be in the same filter group to remove the filters. If you remove the last line FILTERGROUP(2) then user don't have a way to remove the filter.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans