web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

FormRun object does not have method 'Method Name' : Getting error while overriding FormListControl method

(0) ShareShare
ReportReport
Posted on by 15

Hi Everyone,

While trying to do some development around overriding a method, getting an error while trying to override a method on my custom form

pastedimage1683115062760v1.png

I tried to override the standard method 'Selection changed' of a 'FormListViewControl' on a form with my own 'RegisterMethod' but got the above error.

Then I tried to create to create one custom method in the FormListViewControl itself and tried overriding that. But getting the below error in that.

pastedimage1683115694388v3.png

pastedimage1683115737029v4.png

Please suggest what exactly I'm doing wrong here.

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, I think the issue is that your are passing testSelection instead of method SelectionChanged in registerOverridesMethod.

    check this article

    dynamics365musings.com/.../

  • dynamics noob Profile Picture
    15 on at

    Hi,

    I tried using selection changed first, it did not give me any error at compilation time but threw an error at run time(as shown in the first snip).

    Then I tried overriding with another method 'testSelection' and it threw me compilation error(third snip).

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Compilation error is correct, please use SelectionChanged method. Also, you need to pass the Form Control in RegisterMethod. Please check the article I shared and you can check this old thread

    community.dynamics.com/.../registeroverridemethod-in-d365

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi,

    You cannot use custom method other than in build standard method available in FormListControl using registerOverride function. If you create new method and use this method, I think it won't accept it as override method. Each override method has its specific functionality.

    As Mohit suggested use SelectionChanged method or explain the functionality you are trying to achieve.

    Thanks,

    Girish S.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans