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
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.
Please suggest what exactly I'm doing wrong here.
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.
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
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).
Hi, I think the issue is that your are passing testSelection instead of method SelectionChanged in registerOverridesMethod.
check this article
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156