- This topic has 6 replies, 4 voices, and was last updated 2 years, 3 months ago by Travis P..
-
AuthorPosts
-
9 August 2023 at 1:44 pm #8285JEJosh E.
Im trying to add docXtender with the fact box on a custom page but im get the error
“The record is not open”
How can i fix this?
9 August 2023 at 2:13 pm #9566TPTravis P.Insight WorksMake sure that you can attach a file manually before trying to use DocXtender on a new page.
The Business Central page must have a “Document Attachment FactBox” pointing at a valid single record on any page you want to use DocXtender. The Attachment or Link factbox (not just the tab) must also be visible, so you may need to open personalization to add it. To add attachments to any Business Central page that does not include the factbox, see: http://kb.dmsiworks.com/knowledge-base/extend-for-drag-and-drop-document-attachments-to-any-table-and-page/ (this only adds the drag & drop function – you still need to add the attachment function to the page first).
Note that Journals use the Document Attachment Overview table (137) instead of the Document Attachment table (1173), so they are not supported by DocXtender.
9 May 2024 at 8:51 am #9833SLSergio L.Hello Travis
As we hadn’t seen this post before and didn’t realised about your note about the Journals, we asked our MS partner to add the code you mention in Journals. We told them before that Attachments should be active. We use it (in SharePoint mode) and it works, but there are two unexpected behaviours that we noticed:
- When manually inserting Journal lines, we have to leave a blank first Journal line. If not, this first line does not keep the SharePoint link (but the file is sent to SP)
- When invoicing (providers or customers), all Journal lines that come from invoices creates new links to some documents they are not related to.
If something comes to your mind that could aid, we acknowledge your help in advance.
Thank you.
9 May 2024 at 12:00 pm #9834TPTravis P.Insight WorksBecause journals use the Document Attachment Overview table (137) instead of the Document Attachment table (1173), you would need to use the base Business Central attachment drag & drop instead of DocXtender. This will ensure that you are getting to proper flow of attachments down to the posted documents.
13 May 2024 at 7:24 am #9839SLSergio L.Ok, thank you. I understand, but we chose DocXtender in order not to use attachments of BC that make the database get bigger. So using BC attachments drag and drop is not what we needed.
24 July 2024 at 8:00 am #9944DBDenise B.I am trying to add DocXtender to the Released Production Order Page following the logic in the link below. I am getting errors in VS Code on two of the EventSubscribers that I copied from the link. I cannot see the code in the IWX DocXtrender Codeunit as Insight works has it hidden. Looks like parameters may have changed for two procedures OnGetCustomRecRefFromDocAttachmentDocXtender and OnAfterOpenForRecRefDocXtender. Please advise.
We are using V2.1.8635.2
(1)
[EventSubscriber(ObjectType::Codeunit, Codeunit::”IWX DocXtender”, ‘OnGetCustomRecRefFromDocAttachment’, ”, false, false)]
local procedure OnGetCustomRecRefFromDocAttachmentDocXtender(<u>precDocumentAttachment</u>: Record “Document Attachment”; var prrRecordRef: RecordRef; var lbRecordRefHandled: Boolean);
Error
The type of parameter preDocumentAttachment on the event subscriber OnGetCustomRecRefFromDocAttachmentDocXtender does not match the expected type ‘____Missing Type Symbol____’
(2)
[EventSubscriber(ObjectType::Codeunit, Codeunit::”IWX DocXtender”, ‘OnAfterOpenForRecRef’, ”, false, false)]
local procedure OnAfterOpenForRecRefDocXtender(var <u>precDocumentAttachment</u>: Record “Document Attachment”; var prrRecordRef: RecordRef);
Error
The type of parameter preDocumentAttachment on the event subscriber OnAfterOpenForRecRefDocXtender does not match the expected type ‘____Missing Type Symbol____’
25 July 2024 at 10:14 am #9948TPTravis P.Insight WorksAny message about symbols means that the project needs to be closed, re-download the symbols and then re-compile.
-
AuthorPosts
- Sign in below to reply.