Skip to main content

Notifications

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

Why my display method not appeared for fieldgroup ?

(0) ShareShare
ReportReport
Posted on by 362
Hi all,
 
I have an extension class (CoC) which is to add display method in one of the standard table CustInvoiceTemplate, like this:
[ExtensionOf(tableStr(CustInvoiceTemplate))]final class MYCustInvoiceTemplateTable_Extension{        public display Name displayWorkerName()        {            return HcmWorker::find(this.WorkerSalesTaker).name();        }}
 
My intention is to add this display method in the table Field Group so it can be used automatically in its form.
 
The table it self has an extension already, and in their FieldGroup Administration, I like to add that custom display method. Can it be done ? Because I cannot see my display method when adding field in field group. When we add new field in FieldGroup, and goes to its property, ain't the display method also listed for us to choose ? I can see the display method of the original table (displayTotalInvoiceMarkupTrans), but cannot see mine.
 
Is there better way to have a display method ? I've read it somewhere that it is best if we can have display method in table level, that's why I'm choosing this way (by CoC)
 
 
Thanks.
  • Teevo Profile Picture
    Teevo 362 on at
    Why my display method not appeared for fieldgroup ?
    Thank you.
    I missed it because I'm looking for the method name, not expected it will be listed with the extension class name.
    Thanks again.
  • Verified answer
    TNGrizzly Profile Picture
    TNGrizzly 58 on at
    Why my display method not appeared for fieldgroup ?
    Hello
     
    you will find it like this:
     
    MYCustInvoiceTemplateTable_Extension.displayWorkerName

    u should scroll down to find it

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans