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
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
Sir, can you please share the code which you have written in CreateIncomingDocumentExtended() function and if anything else you modified for this process
Thanks
Did you tried taking help from the standard one like how out of the box system is doing?
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
This is for incoming atatchments - what about Document Attachments 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);
André Arnaud de Cal... 291,419 Super User 2024 Season 2
Martin Dráb 230,492 Most Valuable Professional
nmaenpaa 101,156