Hi Anand,
Yes that is possible through the $actions predefined object. More information can be found in this article.
Call a Client Action
Client actions are available through the "$actions" predefined object. This object contains references to:
- Global client actions defined in the current module or referenced from other modules
- Other client actions belonging to the same screen/block, if the JavaScript element is placed in a screen/block client action flow
The return value is a simple JavaScript object containing each client action output parameters.
To call a (synchronous) client action that has an output parameter named "Out1", follow the example below:
var result = $actions.GlobalClientAction();
var outValue = result.Out1;
Instead of typing "$actions.<client_action_name>()" in the code editor, you can drag-and-drop the client action either from the element tree below the code editor or from the "Logic" application layer tab to the code editor.
Hope this helps!
Regards,
Nordin