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

Open Page - with - Filters - visible to the user

(1) ShareShare
ReportReport
Posted on by 230
Hello Community,
 
i have got the following question.
I want the user to be able to open a page via click on a Field. 
If he clicks on the Field i want the page for contacts to open.
However i am setting Filter via Set Range so only certain contacts should be shown to the user. 
That is easy. 
 
However i want the user to be able to see the Filter which i have entered and i want the user to be able to change the filter. 
These should be possible if the user opens the page and wants to change the filter.
 
I have already found these functionalities in Business Central however i am not able to copy it.
 
What i want is this:
 
What i get instead: 
 
This would be my latest try
                    ApplicationArea = All;
                    trigger OnDrillDown()
                    var
                        Contact: Record Contact;
                        ContactList: Page "Contact List";
                    begin
                        Contact.Reset();
                        Contact.SetRange("Reference Contact", Rec."Sell-to Contact No.");
                        Page.RunModal(Page::"Contact List", Contact)
                    end;
 
 
I have read these:
 
Dear Community Please Help!
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,547 Most Valuable Professional on at
    Hi
    Have you tried coding the OnLookup event, or duplicating the standard ContactList page?
    BR
    GR
  • Suggested answer
    YUN ZHU Profile Picture
    98,128 Super User 2026 Season 1 on at
    Hi, Below is an example of opening Item Ledger Entries, I hope it can give you some hints.
    pageextension 50201 ItemListExt extends "Item List"
    {
        layout
        {
            modify(InventoryField)
            {
                trigger OnDrillDown()
                var
                    ItemLedgerEntry: Record "Item Ledger Entry";
                begin
                    ItemLedgerEntry.Reset();
                    ItemLedgerEntry.SetRange("Item No.", Rec."No.");
                    ItemLedgerEntry.SetRange("Entry Type", ItemLedgerEntry."Entry Type"::Purchase);
                    if not ItemLedgerEntry.IsEmpty then
                        Page.Run(Page::"Item Ledger Entries", ItemLedgerEntry);
                end;
            }
        }
    }
     
    Thanks
    ZHU
  • SÖ-17061501-0 Profile Picture
    230 on at
    @Yun ZHU
     
    thanks for your post. 
    This seems to be the right way.
    However, now i have another question.
    I want to be able to choose an entry of this page and take the information and assign them
    to the Field.
    Now if i click on one entry i get directed to the card page.
     
     
    and assign them here:
     
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    98,128 Super User 2026 Season 1 on at
    This requires using the function in the Page to pass the value in. Here is a simple example that I hope will give you some hints.
     
    And
     
    Thanks
    ZHU
     
  • Verified answer
    SÖ-17061501-0 Profile Picture
    230 on at
    @YUN ZHU @gdrenteria
    Thank you for your replies.
    I have found a solution through combination of different methods.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,033 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,105 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,035 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans