Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

How to add to an existing FactBox?

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

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,864 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,155 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans