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

Announcements

No record found.

News and Announcements icon
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
    98,358 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans