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...
Answered

Adding Item Attribute FactBox part page to Purchase Order Line page

(0) ShareShare
ReportReport
Posted on by 3,247

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)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    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.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    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.");

               }

  • Verified answer
    YUN ZHU Profile Picture
    95,381 Super User 2025 Season 2 on at

    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

  • Samantha73 Profile Picture
    3,247 on at

    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

  • M Saravanan Profile Picture
    244 on at

    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

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,990

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,576 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans