Skip to content

DocXtender

Adding docXtender to New Page

Viewing 7 posts – 1 through 7 (of 7 total)
  • Author
    Posts
  • #8285
    Josh 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?

    #9566
    Travis P.
    Insight Works

    Make 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.

    #9833
    Sergio 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:

    1. 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)
    2. 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.

    #9834
    Travis P.
    Insight Works

    Because 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.

    #9839
    Sergio 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.

    #9944
    Denise 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

    Extending DocXtender for Drag-and-Drop Document Attachments to Any Table and Page – Insight Works Knowledge Base (dmsiworks.com)

    (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____’

    #9948
    Travis P.
    Insight Works

    Any message about symbols means that the project needs to be closed, re-download the symbols and then re-compile.

Viewing 7 posts – 1 through 7 (of 7 total)
  • Sign in below to reply.