I want to overwrite the clicked method of a standard form extension. I can only use event handlers. So do I use pre or post?
How do you know when you use them?
I want to overwrite the clicked method of a standard form extension. I can only use event handlers. So do I use pre or post?
How do you know when you use them?
I need to write my custom code in active () method of a form extension datasource to disable and enable a button.
But I cannot overridde it since it is a standard form extension. So which event handlers do I use?
You can't override (replace) the standard method. OnClicking is executed before the super call of the clicked method, onClicked is executed after the super call. Pre-/post handlers are executed before/after the clicked method.
Any code in the clicked method will be executed anyway.
In clicked methods it's quite common to use post handler or onClicked event but it always depends on your scenario and functional requirement, which we don't know.
Hi PrachiGupta,
The most common case where we use eventhandlers is when we want to execute any custom business logic prior/later to insert/update of table record or based on activity(on class) to trriger the event. Usage is that for new custom code, we can make use of event handlers without adding any code to the standard code(decoupling) and thereby more organized by placing/grouping code in one class.
More details ,please refer this thread:
André Arnaud de Cal...
293,280
Super User 2025 Season 1
Martin Dráb
232,034
Most Valuable Professional
nmaenpaa
101,156
Moderator