Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Add reason code field to vendtable form

(0) ShareShare
ReportReport
Posted on by 212

Hello

I want to add the Reason Code field present under the On hold drop dialog box in the vendtable form, as a field (probably using a display method, if possible) in the vendtable form.

Please help me on how this cane be done.

Thanks and Regards.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Add reason code field to vendtable form

    Hi, You can try creating below display method in VendTable table.

    display ReasonCode vendOnHoldReasonCode()
    {
        return VendOnHoldHistory::findLast(this.AccountNum).ReasonCode;
    }

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Add reason code field to vendtable form

    I got your question now. You need to show the reason code on the "On hold form" to be displayed in VendTable form?

    is that you are asking?

    If yes, then the better approach will be adding display method. You can add a select statement on the "VendOnHoldHistory" table to get the reason code against the vendor id. Relation will be VendOnHoldHistory.VendAccount == VendTable.AccountNum.

    Thanks,

    Girish S.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Add reason code field to vendtable form

    Hi txtxt,

    On hold form belongs to VendOnHoldUpdate form name - In that form there is no DataSource available. On the closeOk method they will call the VendTable table level method "updateOnHold" - So if you create a display method where will you get the reason code value?

    Also, if you add the reason code value where will you save the reason code for the vendor id?

    Thanks,

    Girish S.

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Add reason code field to vendtable form

    Hi txtxt,

    Do you want to add a field in this position? This is a standard feature.

    77348.png

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans