Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to display document list in Document attachment factbox

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.

  • scruffysjb Profile Picture
    scruffysjb 121 on at
    How to display document list in Document attachment factbox
    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;
                }
            }
        }
  • Suggested answer
    Shrey Chauhan Profile Picture
    Shrey Chauhan 288 on at
    RE: How to display document list in Document attachment factbox

    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

  • Suggested answer
    Deekshitha Reddy Profile Picture
    Deekshitha Reddy 219 on at
    RE: How to display document list in Document attachment factbox

    You can see the YUN ZHU sir solutions.

    i have tried sir code and its working fine

  • Nilam Bhor Profile Picture
    Nilam Bhor 153 on at
    RE: How to display document list in Document attachment factbox

    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
    Deekshitha Reddy 219 on at
    RE: How to display document list in Document attachment factbox

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

  • Suggested answer
    Sypriya Guarav Profile Picture
    Sypriya Guarav 25 on at
    RE: How to display document list in Document attachment factbox

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

    FactBoxPageRecord.update;

    currpage.update();

  • Nilam Bhor Profile Picture
    Nilam Bhor 153 on at
    RE: How to display document list in Document attachment factbox

    pastedimage1682401347265v1.png

    pastedimage1682401397102v2.png

    Yes, I am checking the development.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to display document list in Document attachment factbox

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

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    RE: How to display document list in Document attachment factbox

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans