Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to set filter on page user not clear this filter

(0) ShareShare
ReportReport
Posted on by 95

How to set filter on page user not clear this filter

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: How to set filter on page user not clear this filter

    Hi, hope the following helps.

    How to make some filters mandatory on the list page (users can not change or remove)

    https://yzhums.com/8427/

    Thanks.

    ZHU

  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    Jeffrey Bulanadi 644 on at
    RE: How to set filter on page user not clear this filter

    Hi Sejal ,

     

    What you can do is to use a what we called FILTERGROUP.

     

    First add a FILTERGROUP(2) before the actual filter as the below example followed by your filtering then enclose using the FILTERGROUP(0) to make the clear filter disabled to the user.

     

    Rec.Reset();

    Rec.FilterGroup(2); // add this

    Rec.SetRange(Status, Job.Status::Open); // your actual filter

    Rec.FilterGroup(0); // finally disable the clear filter for every user

     

    You can check the whole documentation here

    https://docs.microsoft.com/en-us/dynamics-nav/filtergroup-function--record-

    pastedimage1657974986106v2.png

    with FILTEGROUP applied
    001-_2D00_-FILTEGROUP-Applied.png

    without FILTERGROUP (Standard)
    pastedimage1657975100904v4.png

     

    If you find this useful please give it a like or verify the answer. By this way you can help other members know that the topic has been answered. Have a nice day. Thank you.

     

    Cheers,

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans