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

How to display document list in Document attachment factbox

(0) ShareShare
ReportReport
Posted on by 153

Hi Guys,

In my Purchase requisition page, there is one action i.e Document Attachment.I have added various documents in that page.

For Example: Below is the image 1,: I have added 4 documents. It is displayed in that document attachment action.

Image 2: But in Factbox,It is displayed count 4 as right, but entire list of documents is not displayed.

pastedimage1682347435424v2.png

But when i open my document attachment factbox , there is no any document. Below is the screenshot.

pastedimage1682347476924v3.png

Is any way to do this.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,593 Super User 2025 Season 2 on at

    Hi, It seems that the property of SubPageLink only defines the Table ID, and No. is not set. Or No. has set the wrong field and it is always empty. I think you can check this first.

    pastedimage1682385078654v1.png

    More details: https://yzhums.com/11177/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    I see you are working on custom page, you need to check why your development is not working as expected.

    Thanks.

  • Nilam Bhor Profile Picture
    153 on at

    pastedimage1682401347265v1.png

    pastedimage1682401397102v2.png

    Yes, I am checking the development.

  • Suggested answer
    Sypriya Guarav Profile Picture
    25 on at

    You need to right the code on the Trigger OnNewRecord and OnDeleteRecord

    FactBoxPageRecord.update;

    currpage.update();

  • Suggested answer
    Deekshitha Reddy Profile Picture
    219 on at

    I have come across same kind of query, In my case if I reopen the card or refresh the page   the cue then  modified.

  • Nilam Bhor Profile Picture
    153 on at

    I have checked my deployment, and I can see No-> Primary key is not set. that's why it is not displayed the document list.

    Is any other way to do this.

  • Suggested answer
    Deekshitha Reddy Profile Picture
    219 on at

    You can see the YUN ZHU sir solutions.

    i have tried sir code and its working fine

  • Suggested answer
    Shrey Chauhan Profile Picture
    284 on at

    You can see the YUN ZHU sir solutions

    i have tried sir code and its working fine

    Thank you YUN ZHU sir for this solution

    Thank You

  • scruffysjb Profile Picture
    123 on at
    I have the same issue and don't see how I can solve it.....  In the code below the attachments are filtered by the Table ID but not by No. as well - so the Attached Documents shows all documents with that Table ID.  In testing I replaced the FIELD("No.") with a CONST("10003") where 10003 is a valid value in the table - that didn't work either.   Anyone any ideas???
     
    pageextension 50124 IMEC_Service_Order extends "Service Order"
    {
        layout
        {
            addfirst(FactBoxes)
            {
                part("Attached Documents"; "Document Attachment Factbox")
                {
                    ApplicationArea = All;
                    Caption = 'Attachments';
                    SubPageLink = "Table ID" = const(5900),
                                    "No." = FIELD("No.");
                }
                systempart(ServiceOrderLinks; Links)
                {
                    ApplicationArea = RecordLinks;
                }
            }
        }

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 3,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans