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,061

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: FilterGroup

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans