web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,157 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
    95,329 Super User 2025 Season 2 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
    95,329 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans