Hello,
We are wondering if someone knows of to extend the core action button to define a custom action ; for instance, how to call a custom code, eventually with some parameters.
Many thanks for your help,
Fred
Hello,
We are wondering if someone knows of to extend the core action button to define a custom action ; for instance, how to call a custom code, eventually with some parameters.
Many thanks for your help,
Fred
Question: Given that you are looking to customise anyway, why don't you add a completely custom button then? It could call your API or do whatever you need to.
It might be easier than attempting to try to extend Action Button, which I feel might become brittle with upgrades as well.
--
Enrico Simonetti
Sugar veteran (from 2007)
Feel free to reach out for consulting regarding:
All active SugarCRM certifications
Actively working remotely with customers based in APAC and in the United States
Hi Enrico Simonetti ,
we know how to create custom button with custom code.
But with the new and very cool actionbutton feature, it would be great to define button the same way, with a setting screen but also benefit the actionbutton settings (embed the button in the header or the record layout, the list layout, the focus drawer layout etc.).
So without re-code everything, I was looking for a way to extend core actionButton to define my new action.
Fred
Depending on what you want to do with the custom action, you could perhaps use a custom Sugar Formula to do the dirty work OR go with Enrico's suggestion of creating a completely custom button that's not tied to the ActionButton stuff.
I'd avoid extending it as it seems like asking for trouble down the line.
Depending on what you want to do with the custom action, you could perhaps use a custom Sugar Formula to do the dirty work OR go with Enrico's suggestion of creating a completely custom button that's not tied to the ActionButton stuff.
I'd avoid extending it as it seems like asking for trouble down the line.