Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Document's Factbox

Posted on by Microsoft Employee

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?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Document's Factbox

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

    Thanks

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Document's Factbox

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Document's Factbox

    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

  • RustyAustralis Profile Picture
    RustyAustralis 198 on at
    RE: Document's Factbox

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

  • Suggested answer
    Muratvzr Profile Picture
    Muratvzr 743 on at
    RE: Document's Factbox

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

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans