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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi txtxt,

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

    77348.png

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    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.

  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    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
    Mohit Rampal Profile Picture
    12,565 Moderator on at

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

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans