Skip to main content

Notifications

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 93
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!
  • Verified answer
    SÖ-17061501-0 Profile Picture
    93 on at
    Open Page - with - Filters - visible to the user
    @YUN ZHU @gdrenteria
    Thank you for your replies.
    I have found a solution through combination of different methods.
     
  • Suggested answer
    YUN ZHU Profile Picture
    81,365 Super User 2025 Season 1 on at
    Open Page - with - Filters - visible to the user
    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
     
  • SÖ-17061501-0 Profile Picture
    93 on at
    Open Page - with - Filters - visible to the user
    @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
    81,365 Super User 2025 Season 1 on at
    Open Page - with - Filters - visible to the user
    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
  • gdrenteria Profile Picture
    17,492 Most Valuable Professional on at
    Open Page - with - Filters - visible to the user
    Hi
    Have you tried coding the OnLookup event, or duplicating the standard ContactList page?
    BR
    GR

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,099 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