Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Add preview documents on posted putchase Receipt

(1) ShareShare
ReportReport
Posted on by 4
I am on Nav 2017 development enviroment. I am on object designer. I add a field to can view the attached documents. When i run this part i see the box document but is empty. How can I reference the document I have added from an incoming doc attach box?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    Add preview documents on posted putchase Receipt
    Hi, sorry, I misled you a bit.
    I checked the standard code and found that the following function is used to get data in the OnAfterGetCurrRecord trigger. I'm not sure if your versions are the same, but you can try it.
     
    Hope this helps.
    Thanks.
    ZHU
  • Add preview documents on posted putchase Receipt
    Hi Yun Zhu. I have document capture but when i create a factbox i don't know how link the attach file to call it.
     
    The field inside Posted Purchase Receipt is a part and this is the "Definition":
     
    Property    Value
    ID    1120020001
    Name    CaptureUI
    Visible    TRUE
    Enabled    <TRUE>
    Editable    <TRUE>
    Caption    Document
    CaptionML    ENU=Document;ESP=Documento
    ToolTip    <>
    ToolTipML    <Undefined>
    Description    <>
    AccessByPermission    <Undefined>
    ApplicationArea    <>
    SubPageView    SORTING(Created Doc. Table No.,Created Doc. Subtype,Created Doc. No.,Created Doc. Ref. No.) WHERE(Created Doc. Table No.=CONST(38),Created Doc. Subtype=CONST(2))
    SubPageLink    ??????????
    ShowFilter    <Yes>
    ProviderID    <0>
    PartType    <Page>
    PagePartID    CDC Client Addin - Post Purch.
    SystemPartID    <None>
    ChartPartID    <Undefined>
    UpdatePropagation    <SubPart>
     
     
    I don't know what i put in this field to call the document.
     
    Thanks.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    Add preview documents on posted putchase Receipt
    Hi, if you just want to display the number of documents or File name and Type, check the SubPageLink property you set. You can refer to the standard code on the page below.
    If you want to preview the file directly, e.g. show pdf preview in factbox. This requires Add-on, which cannot be achieved with standard development.
     
     
    Hopefully other experts can give you better advice.
     
    Thanks.
    ZHU

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans