D365 Business Central : Create View in AL

If you are tired of typing the same filters over and over again, the Save View is a great way to help you avoid having to set the respective filters over and over again. It will save time and increase your productivity.

What if you want to do it for all users, here comes the extension development.

Let’s say you want to add a View to Sales Order List for filtering Completely Shipped orders.

pageextension 50001 "SalesOrderListExt" extends "Sales Order List"
{    
    views
    {
        addlast
        {
            view(CompletelyShipped)
            {
                Caption = 'Completely Shipped';
                Filters = where("Completely Shipped" = const(true));
            }
        }
    }
}

Publish the extension and you will see your new View in the Sales Order.

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

1 Response

  1. 1 November 2020

    […] Create View in AL […]

Leave a Reply

Your email address will not be published. Required fields are marked *