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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Can we have a tree as a part of the FactBox?

(4) ShareShare
ReportReport
Posted on by 142
Can we implement the tree as a part of the FactBox?
It would be great If someone can share any existing reference form having this implemented already.
I have the same question (0)
  • Verified answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    Hi RahulShah,

    Yes, it is technically possible to implement a tree structure within a FactBox in Business Central, but it requires a custom control add-in. The standard FactBox framework doesn't natively support hierarchical or tree views, so you'll need to build or integrate a control that can render this kind of UI.

    Here's how you can approach it:

    1. Create a JavaScript Control Add-in
      Develop a custom control add-in using JavaScript and HTML that renders a tree view. You can use libraries like jsTree or TreeView from Syncfusion to simplify development.

    2. Integrate the Add-in into a FactBox
      Once the control add-in is ready, you can embed it into a FactBox on your page using AL code. The add-in can receive data from AL and render it dynamically.

    3. Pass Hierarchical Data
      Structure your data in AL to represent the tree hierarchy and pass it to the control add-in using the SetData method or similar.

    4. Reference Implementation
      While there’s no out-of-the-box example from Microsoft, you might find community samples or GitHub repositories showcasing similar implementations. If you’d like, I can help you find one or guide you through building it.


    If this answer was helpful, please consider marking it as accepted.
    Best regards,
    Daniele

  • Verified answer
    Dhiren Nagar Profile Picture
    2,890 Super User 2026 Season 1 on at
    Hi Rahul,
     
    Thank you for this great question.
     
    Well, Yes. You can embed an existing page which has tree structure format in the Factbox section of the page. Considering now we can resize the factbox section it now makes more sense to add more details or tree structure data in factbox.
     
    Basically Microsoft allows only Listpart and Cardpart page types to be used in Factbox.
     
     
    So as far as your tree structure page is in the Listpart or Cardpart format you can use it as a factbox in any other page.
     
    For more details you can refer to this Microsoft Learn link - Adding a FactBox to a page - Business Central | Microsoft Learn
     
    Just to add, I tried this case myself. I created a page of type Listpart which shows G/L Account Categories in the tree strucuture format. I embed this page in G/L Account Card page and here is how it looks.
     
     
    I hope this helps.
     
    Regards,
    Dhiren.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,371 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,371

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans