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...
Suggested answer

How move custom made Documents Attached from details section to attachment section of a factbox?

(0) ShareShare
ReportReport
Posted on by 607

Hi All ,

I have created a custom factbox for a custom page list in my cloud sandbox. I have also created a custom document attachment page and have added that page as a part in the factbox region of my main list page .

But instead of appearing in the Attachments section of the factbox , its coming in the Details section of the factbox : 

pastedimage1591958587777v1.png

My Code : 

         area(Factboxes)
        {
            part(XXXProjectDetailsFactbox; XXXProjectDetailsFactbox)
            {
                ApplicationArea = Basic, Suite;
                SubPageLink = ProjectId = field(ProjectId);
            }
            systempart(Links; Links)
            {
                Provider = WfsProjectDetailsFactbox;
                ApplicationArea = RecordLinks;
                //Visible = false;
            }
            systempart(Notes; Notes)
            {
                ApplicationArea = Notes;
            }
   
            // This is my Documents attachment section which should come in Attachments section of my sandbox instead its coming on the Details Section :
            part(ProjectDocAttachFactbox; ProjectDocAttachFactbox)    
            {
                ApplicationArea = All;
                SubPageLink = "Table ID" = CONST(50003),
                                            "No." = FIELD(ProjectId);
            }

        }
PLease Help!!!
Thanks in Advance!
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    92,053 Super User 2025 Season 2 on at
    RE: How move custom made Documents Attached from details section to attachment section of a factbox?

    Hi, just answered here.

    community.dynamics.com/.../systempart-notes-placed-as-first-part-of-the-factbox-area

  • Damjan Zakojc Profile Picture
    431 on at
    RE: How move custom made Documents Attached from details section to attachment section of a factbox?

    Hi,

    I am having the same issue.

    I would like to move SystemPart Notes to the Details section of the Customer Card's Factbox page. It should be the first part (SystemPart), but it is moved under the Attachments section.

    pastedimage1650897892348v2.png

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: How move custom made Documents Attached from details section to attachment section of a factbox?

    Hello,

    Currently, Custom attachment fact box can not be move in the attachment section, as it is a Microsoft standard behavior.

    If you call the standard attachment it automatically comes under Attachment section as show below.

    pastedimage1592116451001v1.png

    For your reference see the below example

    // Welcome to your new AL extension.
    // Remember that object names and IDs should be unique across all extensions.
    // AL snippets start with t*, like tpageext - give them a try and happy coding!
    
    pageextension 50100 "CustomerListExt" extends "Customer List"
    {
        layout
        {
            addafter(CustomerDetailsFactBox)
            {
                //This comes under Attachment section
                part("My Attachment"; "Document Attachment Factbox")
                {
                    ApplicationArea = All;
                    Caption = 'Custom Attachments';
                    SubPageLink = "Table ID" = CONST(18),
                                  "No." = FIELD("No.");
                }
                //This comes under Attachment section
                part("Attached Documents"; "Document Attachment Factbox")
                {
                    ApplicationArea = All;
                    Caption = 'Standard Attachments';
                    SubPageLink = "Table ID" = CONST(18),
                                  "No." = FIELD("No.");
                }
                //This comes under Details section
                part("Project Attached Documents"; "Project Attachment Factbox")
                {
                    ApplicationArea = All;
                    Caption = 'Project Attachments';
                    SubPageLink = "Table ID" = CONST(18),
                                  "No." = FIELD("No.");
                }
            }
        }
    
    }

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,864

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,185

#3
Sumit Singh Profile Picture

Sumit Singh 2,850

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans