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

Community site session details

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

Adding Item Attribute FactBox part page to Purchase Order Line page

(0) ShareShare
ReportReport
Posted on by 3,083

Hi All

I have added factbox parts to card pages like items. However, when I  try to add  "Item Attributes Factbox" part page to Purchase Order Line subfrom it gives the error:

A Part type page cannot contain other parts
Does this mean we cannot add the standard fact boxes like item attributes to document lines?
For this example I've tried to copy the item list page logic to show attributes, where a part is added as below:
            part(ItemAttributesFactBox; "Item Attributes Factbox")
            {
                ApplicationArea = Basic, Suite;
            }
I have the same question (0)
  • M Saravanan Profile Picture
    236 on at
    RE: Adding Item Attribute FactBox part page to Purchase Order Line page

    Hi,

    Can you please elobrate on the process through which you added the attribute in the Sales order Page..? Please provide me an appropriate solution.

    Thanks and Regards,

    Saravanan

  • Samantha73 Profile Picture
    3,083 on at
    RE: Adding Item Attribute FactBox part page to Purchase Order Line page

    Thanks Guys

    Attributes are not the easiest but using Igne's suggestion added a factbox and with a bit of trial and error nearly there:

    so-line-attributes.jpg

  • Verified answer
    YUN ZHU Profile Picture
    89,902 Super User 2025 Season 2 on at
    RE: Adding Item Attribute FactBox part page to Purchase Order Line page

    Hi, Hope this information can give you some inspiration.

    In ms docs: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-designing-parts

    pastedimage1643949909062v1.png

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,035 Moderator on at
    RE: Adding Item Attribute FactBox part page to Purchase Order Line page

    You have to add the fact box to the Purchase order page and not to the sub page showing the line.

    And to let the fact box know where it should get it's data from you need to add:

        Provider = PurchaseLines;   (Or the correct naming of  your line variable).

    That connects the factbox in the head to the records on your sub page.

    This is how it is done in the standard Page 50 for Purchase orders:

    part(Control3; "Purchase Line FactBox")

               {

                   ApplicationArea = Suite;

                   Provider = PurchLines;

                   SubPageLink = "Document Type" = FIELD("Document Type"),

                                 "Document No." = FIELD("Document No."),

                                 "Line No." = FIELD("Line No.");

               }

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Adding Item Attribute FactBox part page to Purchase Order Line page

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans