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 :
Small and medium business | Business Central, N...
Suggested Answer

All* Action on lists removes all filters including fields in a specific filtergroup

(0) ShareShare
ReportReport
Posted on by 12

We had code which filtered the G/L Entries by dimension and applied a filtergroup to this, example below. 

GLEntry.Reset();
GLEntry.SetCurrentKey("Posting Date", "G/L Account No.", "Dimension Set ID");
GLEntry.FilterGroup(100);
GLEntry.SetFilter("G/L Account No.", GLAccountFilter);
GLEntry.SetFilter("Dimension Set ID", DimensionSetIDFilter);
Page.Run(Page::"General Ledger Entries", GLEntry);


However, we noticed that users can simply press the "All" button and this will remove all the filters at it essentially reopens the page. We cannot add this restriction to the OnOpenPage.

What is the new method now to ensure users cannot remove filtergroup permissions?

I have the same question (0)
  • TESDEveloper Profile Picture
    12 on at

    Note: We Reset the FILTERGROUP before opening the page in the real example.

  • Suggested answer
    YUN ZHU Profile Picture
    95,327 Super User 2025 Season 2 on at

    As you know, this should be easy to do if it can be added to the OnOpenPage trigger.
    More details: https://yzhums.com/8427/

    How about using Security Filter?

    pastedimage1683679438439v1.png

    pastedimage1683679455275v2.png

    Hope this can give you some hints.

    Thanks.

    ZHU

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,329

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,250 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,365 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans