Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to add to an existing FactBox?

(0) ShareShare
ReportReport
Posted on by 479

I am trying to add a card part onto the Vendor Ledger Entries FactBox. What I'm trying: creating a card part by creating a new page, adding that card part to the existing FactBox (via addbefore on a part inside the facbox already). I am getting the intellisense error that it cannot find the card part page. Why is this?

My card part:
5758.PNG

My page extension:
7384.PNG

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: How to add to an existing FactBox?

    Hi, try the following.

    pastedimage1655341827999v1.png

    pastedimage1655341837023v2.png

    page 50102 "Vendor Ledger Entry FactBox"
    {
        PageType = CardPart;
        ApplicationArea = All;
        UsageCategory = Administration;
        SourceTable = "Vendor Ledger Entry";
    
        layout
        {
            area(Content)
            {
                group(GroupName)
                {
                    field("Due Date"; Rec."Due Date")
                    {
                        ApplicationArea = All;
    
                    }
                }
            }
        }
    }
    
    pageextension 50112 MyExtension extends "Vendor Ledger Entries"
    {
        layout
        {
            addbefore(IncomingDocAttachFactBox)
            {
                part("VendorLedgerEntryFactBox"; "Vendor Ledger Entry FactBox")
                {
                    SubPageLink = "Entry No." = field("Entry No.");
                    ApplicationArea = All;
                }
            }
        }
    }

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to add to an existing FactBox?

    Is it the typo? The part uses a different name to your new card part page

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans