Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Adding Display Method ...
Finance forum

Adding Display Method On A Form (the Table is Created From Scratch)

(0) ShareShare
ReportReport
Posted on by 55

Good Evening,

I Have the Following Scenario i have created a new table and there is two display methods on it as show in the attached figures then i created an extension from the HcmWorker Form and added the newly created table as a datasource but unfortunately i can't add my methods on it 

0508.PNG

8228.PNG

the total remaining is real so i created a real control

i have tried the following scenario as it's done in the Table Extension when we need to add a new method and then attach it to the form but it didn't work

6567.PNG

5554.PNG

any suggestion ?

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    I think it doesn't matter if the table is created from scratch or not.

    The bug seems to be:

    "In Form extension, the lookup for "dataMethod" control doesn't work. It doesn't show any values."

    However, this bug seems to impact only the lookup of this property in Visual Studio. It has no impact on the functionality, or being able to set value to the property. So, like I already said earlier, please try to type the method name in the "DataMethod" property, build your code and open the form. At least for me it works - I tested this by adding a new display field in a form extension of SalesTable form.

  • Omar Hesham Profile Picture
    55 on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    after several investigations i found that the display methods doesn't appear on the forms if the table is created from scratch , while on the other hand when i create a form from scratch and  attach this table to it the methods appears does anyone have any suggestions ?

  • Verified answer
    Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    Looks like its a bug. I created a hcmworker form extension added by customized datasource to it . Display Method is added on the table . I added new control and set data source  property on the control  and click data methods , nothing is loading in dropdown  I can see display methods on other forms extensions. I would say create a support ticket with Microsoft.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    Are you sure it's a form extension? And not overlayering of a standard form? To me it looks like overlayered form. You need to move all overlayered customizations into extensions.

  • Omar Hesham Profile Picture
    55 on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    when i created a new form the methods appeared so is there any explanation that they don't appear on the extension created for the hcmworker form

  • Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    Yes , you should definitely get methods in the drop down .  Your custom table and hcmworker form extension are  in same model ? You ca try few things .

    Do full model build and see if it makes any difference .

    Create a brand new form with your custom table as data source and a control over there and see if you can see methods in the dropdown.

  • Omar Hesham Profile Picture
    55 on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    yes i did BI_WorkerAbsenceBalance.totalremaining but as i understood from Nikolaos that once i have set the data source property to the table name on the form control when I navigate to the datamethod i should find all the customized methods in the drop down list in  the property

  • Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    Did you try giving just a tableName.Displaymethod ?

    MyLedgerJournalTrans_Extension.Displaymethod

  • nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    Ok. If you forget the lookup for now and just type the method name in the form control, does it work?

    Also please try to check some standard display methods and how they are used on a form.

  • Omar Hesham Profile Picture
    55 on at
    RE: Adding Display Method On A Form (the Table is Created From Scratch)

    no it doesn't work either and by the way i just added it to follow the link you provided

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,043 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,864 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans