Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

How to set filter on page user not clear this filter

Posted on by 95

How to set filter on page user not clear this filter

Categories:
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 69,864 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans