Hi, I am creating my own wizard by extending sysWizard class.
In addition, there is a new FormFunctionButtonControl 'wfButton' and register override method for clicked action in the same class but still I am getting error: MyWizard class does not have a clicked method although it is there. However, I also did a full build but still nothing good happens.
wfButton.registerOverrideMethod(methodStr(FormFunctionButtonControl, clicked), methodstr(MyWizard, clicked), this); public void clicked() { Info('wfButton clicked'); }
Well, it's mainly about experience. I know how registerOverrideMethod() works.
Also, it makes sense. You often need a reference to the form control, e.g. to get the current value. You can't refer to "this" as if you overrode a method of the control itself, because your method is in a different class. The only way is using a parameter.
Thank you so much it works.
How did you know that as I could not find this in Microsoft documentation.
The problem is that your clicked() method doesn't have the right parameters. It should have a parameter accept an instance of the button.
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156