Control when next action executes

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Is there a way when using the action framework to control via a snippet when the subsequent action will execute, particularly when the snippet involves asynchronous processing?

For instance, one of the simplest ideas would be something like:
var MyModel = skuid.$M(‘MyModel’);
MyModel.updateData( function(result) { // tell action framework to go to the next step }
The idea being that we wait for the async process's callback to be called before moving to the next step, rather than simply moving on after the (in this case) updateData method has been invoked but (indeterminate, but most likely) before it has completed.
Photo of Hamza Tayeb

Hamza Tayeb

  • 278 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb