Create a Select All Enum Option
Overview

Sometimes a model might have a lot of (include/exclude) values and therefore including a Select All Enum as an option helps improve user experience.
Step-by-Step Guide

- Enter the Enum code in the VROI_ENUMS sheet of the Excel file.

- Call the Enum value in the Value field.

Create the VROI_INPUTS sheet in the Excel model with Enum as Variable Type and Checkbox as Format. Here the variable Infrastructure is the Parent input while the rest are the Child inputs.
- Follow the steps to Add a Simple Table in Value Collaborator.

Click Prototype and you can see that all the variables appear unchecked.
Follow the steps to Edit Group Variable.
- Copy the following code:
"conditional variables": [
{
"type": "parent-child",
"parent": "Infrastructure IN2",
"childerns": [
"Roads IN3",
"Railways IN4",
"Bridges IN5",
"Tunnels IN6",
"Water Supply IN7"
]
}
],
- Paste it in the Group Variable right after the curly bracket. Here the value of the Parent checkbox (i.e. Infrastructure) would check or uncheck all the child checkboxes.
- Click Value Collaborator on the Visualizer Type page.
- Click Save on the top navigation and then click Prototype.

- You can see that on selecting the Infrastructure checkbox rest of the variables also get selected automatically and vice versa.