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...
Answered

Default filter on Item List?

(0) ShareShare
ReportReport
Posted on by 10

I am trying to have the Item List filter the blocked out by default.

I use this code:

pageextension 50100 ItemsExt extends "Item List"
{
    views
    {
        addfirst
        {
            view(NB)
            {
                Caption = 'NotBlocked';
                Filters = where(Blocked = CONST(false));
            }
        }
    }
}

But in my page, the result is that I see the new filter, but I have to manually select it to apply it. Is there a way to make it the default?

pastedimage1597420348064v1.png

  • Verified answer
    Mohamad Vajid Profile Picture
    Microsoft Employee on at

    Hello,

    Maybe you can try SetRange in the OnOpenPage trigger if you just want to filter?

    pageextension 50100 ItemsExt extends "Item List"
    {
    
        trigger OnOpenPage()
        begin
            SetRange("Blocked", false);
        end;
    
    }

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 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans