web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,359 Super User 2025 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
  • Community member Profile Picture
    4 on at
    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
    94,359 Super User 2025 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,901

#2
YUN ZHU Profile Picture

YUN ZHU 2,079 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,041

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans