Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to add filter when opening page

(1) ShareShare
ReportReport
Posted on by 69
Hi,
How can I make clicking on the Qty. on Sales Order field open the Sales Line page and filter in ascending order by Ship Date?
 
 
 
Thanks.
 
  • Suggested answer
    YUN ZHU Profile Picture
    81,396 Super User 2025 Season 1 on at
    How to add filter when opening page
    Hi, this is a Flowfield, we can't modify its formula directly unless you recreate a new field. 
    In addition, you can rewrite the logic of opening the page in the OnDrillDown Trigger of the page.
    For example, the following is a method to prevent users from drilling into Flowfield. More details: 
     
    PS: Dynamics 365 Business Central: How to make some filters mandatory on the list page (users can not change or remove)
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    How to add filter when opening page
    Hi,
     
    Subscribe to OnOpenPage Event and setascending.
     
        [EventSubscriber(ObjectType::Page, Page::"Sales Lines", 'OnOpenPageEvent', '', false, false)]
        local procedure SortSalesLines(var Rec: Record "Sales Line")
        begin
            Rec.SetAscending("Shipment Date", true);
        end;
     
     
    Regards,
    Saurav Dhyani
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans