Using action sequences for app workflows
1. Using action sequences for app workflows
Welcome back. In this video we’ll learn about Sigma action sequences. Among other things, action sequences will help us open modals and capture user input in our app.2. What is an action sequence?
Action sequences are trigger-based instructions for events in Sigma such as opening a modal, navigating to a different page, changing the value of a control element or changing the appearance of a chart. Action sequences are made up of three components: a trigger, an effect, and an optional condition. Action sequences can be simple, or branching and multi-faceted. We’ll give some examples of each, but first let’s define triggers, effects and conditions.3. Action sequence triggers
An action sequence's trigger is what causes the effect or effects of the action sequence to take place. For example, you might want a button that says "Back to Page 1" which, when clicked, automatically navigates to the first page. In this case the trigger is clicking on the button, and the effect is returning to page one.4. Action sequence triggers
Different element types have different types of triggers available. The 3 most commonly-used triggers are: ‘on select’, ‘on click’ or ‘on change’. ‘On select’ and ‘on click’ are similar. One or the other will appear depending on the type of element you're interacting with and they indicate that a user has clicked on or selected a portion of an element. The ‘On change’ trigger is most associated with control elements. For example, if someone were to enter a numeric value into a control, that qualifies as a change to the control, and would trigger an effect.5. Action sequence effects
Sigma has over 18 different types of effects that can occur after an action sequence is triggered. We'll focus on the most commonly used effects in this course, including: opening and closing modals, setting or clearing control values, updating input table data, and navigation.6. Action sequence conditions
Conditions are optional, and can be applied to action sequences so they only execute effects when certain criteria are met. They can be used for quality control or to create branching sequences.7. Action sequence conditions
For example, if we have a button that says 'submit data', the effect of clicking it could be to add a row to an input table. A condition could be added which only adds the row if the required fields were filled in when the button was clicked. Action sequences can be simple or complex. Remember that action sequences in Sigma can be simple or they can be complex, branching and multipurpose. In all action sequences, events occur in a sequence, not simultaneously.8. Action sequence effects execute in a defined order
In complex scenarios, we could have a single trigger which activates multiple effects, such as clicking a button to open a modal, populate some control values and add a row to an input table. Again, even though they’re part of the same action sequence, the effects would happen in order one after another based on how they’re arranged in Sigma’s actions panel. Sigma developers should carefully consider the ordering of action sequences and their component effects to achieve their intended purpose.9. Let's practice!
Now that we understand how action sequences can enrich Sigma apps, let's add some to our app for approving or rejecting loans. First, take a moment to explore some action sequences in a finished Sigma app.Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.