.js Function Exection on Service Completion
How would I code a function to execute every time a service is completed? I would like to use js instead of bindings.
How would I code a function to execute every time a service is completed? I would like to use js instead of bindings.
To execute javascript code in studio home.js when a TWX service added in the External Data would trigger a "ServiceInvokedComplete" event you can add the following in the home.js to intercept that event and run code that doesn't require leveraging the bindings in studio:
$scope.$on('myTWXService.serviceInvokeComplete', function(evt, arg)
{
// do code after myTWXService executes
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.