Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Why my display method ...
Finance forum
Answered

Why my display method not appeared for fieldgroup ?

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans