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 :
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
    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

  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator 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.

  • Verified answer
    GirishS Profile Picture
    27,827 Moderator 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
    Mohit Rampal Profile Picture
    12,565 Moderator 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;
    }

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 776 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 402 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans