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...
Suggested Answer

how can we get list page record in list part in business central?

(5) ShareShare
ReportReport
Posted on by 95
I have one list page "Customer analysis"(custom page),
I want to get all record from this page, and show all of them in list part page "Customer Spend analysis"(custom page) which is in card page,
Note that source table of both Page is same which is customer,
can we do this using query or other way??
I have the same question (0)
  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    Hi you can try below steps :
     
    First Page :
    page 50100 "Customer Analysis"
    {
        PageType = List;
        SourceTable = Customer;
        UsageCategory = Lists;
        ApplicationArea = All;
    
        layout
        {
            area(content)
            {
                repeater(Group)
                {
                    field("No."; Rec."No.") { }
                    field(Name; Rec.Name) { }
                    field("Sales (LCY)"; Rec."Sales (LCY)") { }
                }
            }
        }
    }
    List Part Page:
    page 50101 "Customer Spend Analysis"
    {
        PageType = ListPart;
        SourceTable = Customer;
    
        layout
        {
            area(content)
            {
                repeater(Group)
                {
                    field("No."; Rec."No.") { }
                    field(Name; Rec.Name) { }
                    field("Sales (LCY)"; Rec."Sales (LCY)") { }
                    // Add more fields as needed
                }
            }
        }
    }
    Add that page in Card Page:
    page 50102 "Customer Spend Card"
    {
        PageType = Card;
        UsageCategory = None;
    
        layout
        {
            area(content)
            {
                group(General)
                {
                    // Add card fields if needed
                }
                part(CustomerSpendAnalysis; "Customer Spend Analysis")
                {
                    ApplicationArea = All;
                }
            }
        }
    }
    Now Add below action button on First Page:
    page 50100 "Customer Analysis"
    {
        // ... existing code ...
        actions
        {
            area(processing)
            {
                action(ShowSpendAnalysis)
                {
                    Caption = 'Show Spend Analysis';
                    Image = AnalysisView;
                    ApplicationArea = All;
    
                    trigger OnAction()
                    var
                        CustomerSpendCard: Page "Customer Spend Card";
                    begin
                        CustomerSpendCard.Run();
                    end;
                }
            }
        }
    }
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,838 Super User 2025 Season 2 on at

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 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans