Hi,
How to use events for Non-Hookable methods in D3fO for extension process.
I am trying to use event but it's throwing error
"Pre or post event handlers can only be created on hookable methods. Hookable methods are non-abstract methods that are either public or have been attributed with Hookable(true)."
Please help.
*This post is locked for comments
Hi, You can either ask microsoft to make this method Hookable or write the logic in form initialized event handler. I see that the said method is private and is called only from the form init() method. So, if your logic works fine even after calling all the private methods, you can use the form event handlers.
We asked MS guys about this couple of times and they says that there is no way to completely avoid overlaying of App Suite now, in future they will do refactoring and add extension points, but now it's impossible to customize some places with extensions only.
They recommend to reduce overlaying by adding delegates or making methods hookable.
Hi Ievgen,
Thank you for your response.
What should you recommend do I use overlaying or not? As per I know we shouldn't use overlaying because overlaying will affect in future up gradations.
Hi Udit Kumar,
Application Suite does not have enough extension points and often it's not possible to avoid overlaying when you deal with App Suite.
Hi Martin,
As you mentioned, we can customize the method, that means overlaying and overlaying is not recommended.
Hi Martin,
Thank you for your quick response.
I want to add a small logic in createData2Controls method on EcoResProductCreate form. How can I achieve this?
Thank you.
You can only add event handlers to methods that are public or decorated with the Hookable attribute. Otherwise you can't do that.
If you can customize the method, you can make it hookable.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156