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

Notifications

Announcements

No record found.

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
    95,597 Super User 2025 Season 2 on at
    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
    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
    95,597 Super User 2025 Season 2 on at
    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans