Hi,
Apologies for any mistakes as this is my first post.
I have a custom table to which I wish to add the latest document attachment list factbox.
I have been able to do this and have been able to filter attachments to show only those attachments with the table ID and No. of the selected record.
However, I cannot find the correct code to associate new attachments with the selected record on upload. When I select a record and click 'upload files', the resulting attachments are uploaded without reference to the Table ID and Record ID, so they are not displayed in the factbox.
I have been able to make it work using a codeunit which uses the older Document Attachment Factbox, but this gives me a warning saying that the Page 'Document Attachment Factbox' is marked for removal. Reason: The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.. Tag: 25.0.
Version: GB Business Central 25.1 (Platform 25.0.27994.0 + Application 25.1.25873.25976)
Has anyone had success using the new "Doc. Attachment List Factbox" on a custom table and custom page? Any links to working code would be massively appreciated.
Thanks
Joe