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.
Hi txtxt,
Do you want to add a field in this position? This is a standard feature.
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 776 Most Valuable Professional
André Arnaud de Cal... 606 Super User 2025 Season 2
Sohaib Cheema 402 User Group Leader