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?

  • 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
    104,117 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans