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 :
Microsoft Dynamics NAV (Archived)

Document's Factbox

(0) ShareShare
ReportReport
Posted on by

Hi All,

How Can I attach a Documents Files Factbox (Document Capture)  to the Vendor Ledger Entries. I've added the factbox to page 29 but what link / code needs to be inplace for this to pickup documents?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Muratvzr Profile Picture
    743 on at

    I did it for Customer you can change it to Vend ledger entries

    First You  need to add field on Customer table named

    "Incoming Document Entry No."  

    add this code Code unit 134

    Go to CreateNewSalesPurchIncomingDoc Function

    add this code to case

     DATABASE::Customer:

         BEGIN

           Customer.GET(DocNo);

           CreateIncomingDocumentExtended(IncomingDocumentAttachment,IncomingDocument,0D,'',Customer.RECORDID);

           IncomingDocument."Document Type" := IncomingDocument."Document Type"::Customer;

           IncomingDocument.MODIFY;

           Customer."Incoming Document Entry No." := IncomingDocument."Entry No.";

           Customer.MODIFY;

         END;

    Then you add this code to Customers OnAfterGetCurrRecord Trigger

    HasIncomingDocument := IncomingDocument.PostedDocExists("Document No.","Posting Date");

    CurrPage.IncomingDocAttachFactBox.PAGE.LoadDataFromRecord(Rec);

  • RustyAustralis Profile Picture
    202 on at

    This is for incoming atatchments - what about Document Attachments factbox?

  • Community Member Profile Picture
    on at

    Hello,

    I'm not sure what you mean, but if you need to tie the factbox record(s) to subpage record you can use "Provider = Control6;", where Control6 is the subpage. For the actual link use SubPageLink.

    Tero

  • Suggested answer
    RockwithNav Profile Picture
    8,646 Super User 2025 Season 2 on at

    Did you tried taking help from the standard one like how out of the box system is doing?

  • Community Member Profile Picture
    on at

    Sir, can you please share the code which you have written in CreateIncomingDocumentExtended() function and if anything else you modified for this process

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans