Call a Smart Action on Button Click
Administrator can create a button or link that invokes a Smart Action, similar to triggering it from the standard action bar. This can be configured easily by calling a simple function and passing the action name, enabling flexible placement within the UI.
This capability improves usability and efficiency by allowing key actions to be accessed directly from a button, while giving admins greater flexibility to tailor the user experience
Steps to enable and configure
Leverage the Visual Builder Studio to expose your applications. To learn more about extending your application using Visual Builder, visit Oracle Help Center > your apps service area of interest > Books > Configuration and Extension.
Call the following function on a button or link, where ‘SDA-CreateTask-opportunities’ is the name of the Smart Action:
await ActionsHelper.invokeSmartAction({
smartActionName: 'SDA-CreateTask-opportunities'
});
The following needs to be in "define":
'vx/oracle_cx_fragmentsUI/ui/self/resources/js/utils/actionsHelper'